I know you can use multiple bindings, but if you implement a REST Service, must you use the webHttpBinding?
+2
A:
The webHttpBinding is what tells the WCF framework to communicate in a RESTful fashion - any other binding would define a different protocol. In your comment, you ask about wsHttpBinding - If you used that binding, you would not have a REST service, you'd have a SOAP web service.
Ben
2010-10-04 15:47:46
ok, that clears it up. I'm new to WCF and REST and running into many issues. Thanks for the answer.
Xaisoft
2010-10-04 15:50:14
+1
A:
You don't need to use directly WebHttpBinding. You can also use custom binding or your own binding but these bindings have to use HttpTransportBindingElement and WebMessageEncodingBindingElement. Both these binding elements are used by WebHttpBinding.
Ladislav Mrnka
2010-10-04 19:05:51