After my previous post where I showed how you can eliminate the .SVC from your URI with WCF Data Services and System.Web.Routing I got a very good question

“While this changes the root URI of the service that a user can browse to,does it also change the base Uri of the service as represented in the Service document ?”

The answer is – yes it does change the base URI of the service document, but in fact even if it didn’t the service is still available at the URI with the .SVC file as long as you don’t delete it.

 

Here is the service document when I reference the .SVC file, note the base URI

image

 

Now note what happens when I navigate using the route URI

image

So yes, it does work…