Tag Archives: WCF

ODATA WCF Data Services Friendly URLS using Routing

Posted on

When you creating your first OData WCF Data service common tasks is to give a friendly URL instead of using filename.svc as entry point.You can archive it with URL routing feature in ASP.NET MVC.Just modify your Global.asax.cs route registration block to include following lines. public static void RegisterRoutes(RouteCollection routes) { routes.Clear(); var factory = new   …Continue Reading

WCF WebHttp REST Entity Service Test Scenarios

Posted on

Original content published at http://code.msdn.microsoft.com/WCF-WebHttp-REST-Entity-35712921 Canonical REST Entity Service URI Map Base URI: http://tempuri.org/Resource where Resource is the name of the REST collection (i.e. Customers, Orders etc.) Web Formats XML and JSON are supported for all request/response messages URI Template HTTP Method Description Status Response Content Response Contains /{key} GET Gets a resource by key   …Continue Reading