WebHttpBinding

beingchinmay

New member
The WebHttpBinding class is a new OOTB binding in WCF 3.5, designed to be the binding for RESTful WCF endpoints.

The binding is pretty simple, and is very much like the CustomBinding used in my WCF 3.0 example earlier in the chapter (Example 2-1). WebHttpBinding contains a binding element that creates the HTTP (or HTTPS) WCF transport channel to listen for or send messages over HTTP(S). It also contains a message-encoder binding element that sets
the channel stack’s encoder to TextMessageEncoder, with the Version set to MessageVersion.None (no SOAP expected).

In some cases, you may still have to create a CustomBinding, but the WebHttpBinding type will suffice the majority of the time.
 
Thanks for sharing the information..

It is used to configure the end points of windows communication foundation(WCF) web services that are exposed through HTTP request instead of SOAP messages.
 
Back
Top