tags:

views:

107

answers:

2

This starter kit seems to use incredibly ugly URIs that include a "Service.svc" filename.

Surely if you're going to have a service called say "Users.svc" you'd want the URI to look like '/users/' rather than '/Users.svc/'?

Is there a way this can be fixed?

+3  A: 

ta-da http://www.west-wind.com/Weblog/posts/570695.aspx

or even better: http://wcfrestcontrib.codeplex.com/ - see point 4

mcintyre321
I want to hard code this behaviour into my application so that there is no trace of the .svc extensions ever existing.Apparently this can be done in a more traditional ASP.NET application by overriding the Init method of the HttpApplication base class inside a Global.asax file. Unfortunately this doesn't appear to be available on a WCF REST application. Unless I am missing something?
NathanE
I'd just use the wcfrestcontrib method, then stop worrying about it.
mcintyre321
+1  A: 

This is a limitation of hosting the WCF REST Service in IIS - for the time being, this requires a *.svc file and that file shows up in the URL.

You do not have this limitation:

Marc

marc_s