I have the following configuration for my Windows Service hosted WCF service:
<services>
<service name="MyService" behaviorConfiguration="MyServiceBehavior">
<endpoint address=""
binding="netTcpBinding"
bindingConfiguration="WindowsClientOverTcp"
name="WindowsClientOverTcp"
contract="IMyService" />
<endpoint address=""
binding="wsHttpBinding"
bindingConfiguration="WindowsClientOverHttps"
name="WindowsClientOverHttps"
contract="IMyService">
</endpoint>
<endpoint address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange" />
<endpoint address="mex"
binding="mexHttpsBinding"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="https://MyMachine:8250/Services/MyService/Https" />
<add baseAddress="net.tcp://MyMachine:8250/Services/MyService/tcp" />
</baseAddresses>
</host>
</service>
1st: Everything works. However I have a question. When starting to debug the service in VS.NET 2010 and the "WCF Test Client" tool appears, only the single "net.tcp://MyMachine:8250/Services/MyService/tcp" address is displayed at the top of the tree navigation, and both endpoints displayed as child elements (WindowsClientOverTcp & WindowsClientOverHttps). Now both base addresses are consumable and usable so there is no major issue. However, why is it only showing the single address in the tool? I thought it might be the order displayed in the .config so I switched them around but that didn't change anything.
Anyone know why both base addresses do not display in the WCF Test Client tool when having a single service exposing multiple endpoints?
Thanks!