Endpoint in WCF service is the combination of three things address, binding and contract. Service endpoint is for the server, server where your WCF service is hosted. Service endpoint defines where the service is hosted, what are the bindings and the contract i.e. methods and interfaces.
While client endpoint is for the client. Client endpoint specifies which service to connect, where it's located etc.
Code of WCF Server end point looks something as shown below.
WCF Client end point code looks something as shown below.This is generated when you add service reference using add service reference.
No comments:
Post a Comment