Sunday, January 26, 2014

which binding we used for WCF REST protocol

In my previous post i explained, Interview question and few details on WCF. and Transaction in WCF  Now in this article i will explain which binding used during the WCF REST protocol. 


most of the time this question may asked during the interview , Yes its simple. 

For WCF REST used WebHttpBinding. You may enabled WebHttpBinding by as shown in the below code snippet.

    <endpointBehaviors>
            <behavior name="NewBehavior0">       
            <webHttp />
            </behavior>
    </endpointBehaviors>
 You can find more details here.