Custom service in application - can I disable pageroutehandler for a folder?
I've added a custom WCF service to my Sitefinity application. The service is set up to handle JSON posts and return data that the widget will then display. Using the standard jQuery.ajax command, the method url is in the format: somedomain.com/.../DataMethod. Obviously, the Sitefinity PageRouteHandler intercepts that URL, tries to figure out what DataMethod is, and throws a 404.
Is it possible to disable the default PageRouteHandler for the Services folder? Basically, I need a configuration that just tells the site to process that call like a normal .NET service call without any of the page routing commands kicking in. Any suggestions on how to make this happen?
Hello Steve,
Please review the following blog posts -
http://www.sitefinity.com/blogs/lubomirvelkov/posts/12-01-22/extending_the_built-in_content_modules.aspx
http://www.sitefinity.com/blogs/lubomirvelkov/posts/12-01-11/creating_a_content_module_-_sticky_notes_for_your_backend_dashboard.aspx
There are examples how to implement and cosume custom WCF services using jQuery.