Xaisoft
Xaisoft

Reputation: 46591

Can you only use webHttpBinding with REST?

I know you can use multiple bindings, but if you implement a REST Service, must you use the webHttpBinding?

Upvotes: 0

Views: 788

Answers (2)

Ladislav Mrnka
Ladislav Mrnka

Reputation: 364269

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.

Upvotes: 1

Ben
Ben

Reputation: 6059

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.

Upvotes: 4

Related Questions