WCF interview questions: - Using which binding we can build WCF REST?

144 0 0
                                        

This is one of the asked WCF interview questions during the interview. So one proceed answer as the following: -

For WCF REST we need to use WebHttpBinding. WebhttpBinding is enabled by as shown in the below code snippet.

<endpointBehaviors>

        <behavior>

          <webHttp />

        </behavior>

</endpointBehaviors>

Also see our rightside video on explanation of REST: -

WCF interview questions: - Using which binding we can build WCF REST?Where stories live. Discover now