What are WCF Service Endpoints? | WCF Interview Question

, ,
A WCF client connects to a WCF service via an Endpoint. Each service exposes its contract via one or more endpoints. An endpoint has an address (which is a URL specifying where the endpoint can be accessed) and binding properties that specify how the data will be transferred.
A WCF service endpoint has three basic elements i.e. Address, Binding and Contract.
  • Address: It defines "WHERE". Address is the URL that identifies the location of the service.
  • Binding: It defines "HOW". Binding defines how the service can be accessed. Binding specifies what communication protocols are used to access the service.
  • Contract: It defines "WHAT". Contract identifies what is exposed by the service.