Monday 26 October 2015

What is endpoint in WCF.What is ABC in WCF?

All communication with the windows communication foundation (WCF) service occurs through the endpoints of the service. Endpoints provide client access to the functionality offered by a WCF Service.
WCF Service exposes a collection of endpoints and each endpoint is a way for communicating with the world.
 Each Endpoint consists of four points: -
• Address
• Binding
• Contact
• Behavior
Address: - It is uniquely identifies the endpoint and tells client where the service is located. Address is basically a URL ex.
http://localhost:8090/MyService/Service.svc
Client use this address to connect the WCF Service.
Binding: - Binding specifies how to communicate with service. There are different protocols available for WCF Serv . This includes:-
• The transport protocol to use (ex. TCP or HTTP).
• The encoding to use for the message (for ex. Text or binary)
• The necessary security requirement (for ex. SSL or SOAP message).
Contracts:-  The contract outline what functionality the endpoint expose to the client. A contract Specifies
• What the operation called by client
• The form of message
• The type of input parameter or data required  to call the operation
• What type of processing or response message the client can expect
 Behaviors:- You can use endpoint behaviors to customize the local behavior of the service endpoint.  Endpoint behavior achieves this by participating in the process of building WCF runtime. An example of endpoint behavior is the ListenURI property, which allows you to specify a different listening address than the SOAP or WSDL address.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.