More in this section

Forums / General Discussions / Custom service in application - can I disable pageroutehandler for a folder?

Custom service in application - can I disable pageroutehandler for a folder?

2 posts, 0 answered
  1. Susan
    Susan avatar
    14 posts
    Registered:
    08 Oct 2007
    14 Feb 2012
    Link to this post
    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: http://somedomain.com/Services/Service.svc/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?
  2. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    16 Feb 2012
    Link to this post
    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.

    Regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered