User-2057865890 posted
Hi arry.net,
Each endpoint consists of the following:
Address: The address uniquely identifies the endpoint and tells potential consumers of the service where it is located.
Binding: The binding specifies how to communicate with the endpoint.
Contracts: The contract outlines what functionality the endpoint exposes to the client.
Address + Binding + Contracts = Endpoint
So if you change either of Address, Contract or Binding then a new EndPoint will be created. You may have multiple EndPoints of the same service.
Creating two EndPoints for the same service
<service name="MessagePatternDemo.Service1">
<endpoint name="ep1"
address="/ep1"
binding="basicHttpBinding"
contract="MessagePatternDemo.IService1"/>
<endpoint name="ep2"
address="/ep2"
binding="wsHttpBinding"
contract="MessagePatternDemo.IService1" />
<endpoint name="mex"
contract="IMetadataExchange"
address="mex"
binding="mexHttpBinding" />
</service>
Dealing With Multiple EndPoints of a WCF Service
Best Regards,
Chris