What is ABC of WCF? WCF service comes in existence with an valid EndPoint.  An endpoint consists of 3 major components.

These components are generally refer as ABC of WCF.
A- Address (Where)
B- Binding (How)
C- Contract (What)

Address is basically an URL for eg- http://localhost:1001/myservice/testservice.svc

Binding describes that how a client will communicate with wcf service. It tells that what protocol will be used to communicate, as WCF supports various protocols like HTTP, TCP, MSMQ, Named Pipes

Contract tells that what an endpoint will communicate and client will be aware about the operations that were exposed.

<endpoint address="http://localhost:1001/myservice/testservice.svc" contract="ITestService"

In next blog, I will wrote about various types of Bindings in WCF


Popular posts from this blog

CAML Query in SharePoint 2010

Calling REST APi from server side code - C#

All about SharePoint 2010 Content Type Hub

SharePoint Interview Questions and Answers

Calling ASP.Net WebMethod using jQuery AJAX