tags:

views:

30

answers:

2

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
ok, that clears it up. I'm new to WCF and REST and running into many issues. Thanks for the answer.
Xaisoft
+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
Thanks for the insight.
Xaisoft