Is it possible to change the endpoint address on a WCF service when using IIS Hosting, I current just point to the svc file but I would like to use RESTful commands?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
WCF in .NET 4 will support so-called file-less activation, which will allow you to define any arbitrary URL, and map that to a WCF service.
Check out the Developer’s Introduction to WCF 4 for some info, or read this blog post specifically on file-less activation.
Basically, in WCF 4, you can add an entry to your web.config:
and thus, pointing your browser to
http://YourServer/Services/MyServicewould then activate that particular service.Ron Jacobs also has an interesting approach for REST services, where he registers a route to avoid the *.svc file – he explains this for the WCF Data Services, but it’s my feeling, this should work for all WCF REST services, really. But it’s a .NET 4 only feature, also.