I created a WCF REST (aka WebHttp) service in .NET 4, using Microsoft's WCF REST Service Template 40. I am hosting the service in IIS 6.
The Service Template uses the RouteTable in the Global.asax as a way to create "clean" URL's that don't include ".svc" in them. For example:
http:// localhost / flights / 878
GET and POST work fine against this URL, but PUT and DELETE result in HTTP 501, "Not implemented".
If I create a simple .svc file like this:
<%@ ServiceHost Language="C#" Debug="true" Service="MyProject.FlightsService"%>
then I can use PUT and DELETE against this URL:
http:// localhost / flightsservice.svc / 878
Does anyone know if it's possible to get PUT and DELETE to work against the "clean" URL above? It seems that there is no way to configure IIS to allow this because there is no file extension to configure settings for, and I don't want to allow PUT and DELETE globally. Thanks!