Reputation: 90583
Upvotes: 2
Views: 1193
Reputation: 1922
every Address, Binding, Contract combination in WCF must be unique, In other words you can have multiple Contracts (ITransactService,IQueryService) on the same binding (webHttp or Http) with the same address (http://localhost:8080/MyService)
<endpoint name="MyServiceTrans" binding="customBinding"
bindingConfiguration="secureBinaryHttpBinding"
contract="MyService.SL.ITransactService"
behaviorConfiguration="MyCustomEndpointBehavior"/>
<endpoint name="MyServiceQuery" binding="customBinding"
bindingConfiguration="secureBinaryHttpBinding"
contract="MyService.SL.IQueryService"
behaviorConfiguration="MyCustomEndpointBehavior"/>
<endpoint name="MyServiceAdmin" binding="customBinding"
bindingConfiguration="secureBinaryHttpBinding"
contract="MyService.SL.IAdminService"
behaviorConfiguration="MyCustomEndpointBehavior"/>
Three custom endpoints above, with the same binding, and the same address, different Contracts
Upvotes: 2