Last post Jan 11, 2017 09:59 AM by Chris Zhao
Jan 10, 2017 06:51 AM|sivaeedala|LINK
I am working on sample WCF project and got a scenario like can we have multiple endpoints for same service with same binding and same contract and with single base address as shown below.
<service name="MyMathServiceLib.MyMathService" behaviorConfiguration="MyMathServiceBehavior">
<endpoint address="MyMathService1" binding="basicHttpBinding" contract="MyMathServiceLib.IMyMathService"/>
<endpoint address="MyMathService2" binding="basicHttpBinding" contract="MyMathServiceLib.IMyMathService"/>
<endpoint address="MyMathService3" binding="basicHttpBinding" contract="MyMathServiceLib.IMyMathService"/>
Could you please tell weather it is an valid scenario or not. If Yes, then how can we call the service with single base address and different endpoints.
And for the above Config, Service is Running properly and i able to access the service with the base address "http://localhost:9001/", but when i change the address with
base address+ endpoint address i.e. "http://localhost:9001/MyMathService1" it is not working, i am getting blank page.
Could any one please help in this scenario.
Jan 11, 2017 09:59 AM|Chris Zhao|LINK
You could define one or more endpoints for a service by using a combination of relative and absolute endpoint addresses.
#Dealing With Multiple EndPoints of a WCF Service