Consuming WCF REST service in multiple ways (.Net, plain XML)
Posted
by Jan Jongboom
on Stack Overflow
See other posts from Stack Overflow
or by Jan Jongboom
Published on 2009-12-01T09:43:40Z
Indexed on
2010/05/28
22:52 UTC
Read the original article
Hit count: 248
I have become quite frustrated of WCF as I just want to use this simple scenario:
- Provide a webservice using REST, with a UriTemplate like
/method/{param1}/{param2}/
and a 3th parameter that is sent to the service as XML as POST data. - Use just plain XML, no SOAP overhead.
- Be able to generate a proxy in Visual Studio so a .Net using client can easily use the service (don't care about SOAP overhead here).
I can create 1. and 2. but no way I can use 3. I tried adding both webHttpBinding
and basicHttpBinding
endpoints in my services config; I fooled around with the <services/>
tag, but I just can't get this working. What am I missing here?!
N.B. I checked out this article: http://stackoverflow.com/questions/186631/rest-soap-endpoints-for-a-wcf-service but nothing what is described there seems to work here?!
© Stack Overflow or respective owner