Reputation: 371
I am using WCF and want to create 3 end points: basicHttpBinding, netTcpBinding and wsHttpBinding. I have specified 2 endpoints as follows:
<endpoint address="StringManipulationService" binding="basicHttpBinding"
contract="StringManipulationService.IStringManipulation" />
<endpoint address="StringManipulationService" binding="netTcpBinding"
contract="StringManipulationService.IStringManipulation" />
and specified base addresses as follows:
<baseAddresses>
<add baseAddress="http://localhost:8080/" />
<add baseAddress="net.tcp://localhost:8090/" />
</baseAddresses>
however I do not know how to write the base address for a wsHttpBinding and could not find it anywhere. Any help please. Thank you.
Upvotes: 4
Views: 155
Reputation: 371
<appSettings>
<add key="baseAddress" value="localhost:8000"; />
</appSettings>
<endpoint address="" binding="wsHttpBinding"
contract="StringManipulationService.IStringManipulation" />
Upvotes: 1