Is it possible to setup a .NET4 webforms route to an asmx endpoint?

Posted by Astrofaes on Stack Overflow See other posts from Stack Overflow or by Astrofaes
Published on 2010-06-05T02:56:15Z Indexed on 2010/06/05 12:12 UTC
Read the original article Hit count: 188

Filed under:
|
|
|
|

Is it possible in my RegisterRoutes method in global.asax, to map some routes to an asmx?

Ideally I would like to do something like:

routes.MapPageRoute("ServiceSearchCats", "services/search/cats", "~/Services/Search.asmx/Cats");

(and therefore my endpoint for the service becomes "http://mydomain.com/services/search/cats", instead of the ugly "http://mydomain.com/Services/Search.asmx/Cats" url)

© Stack Overflow or respective owner

Related posts about web-services

Related posts about webforms