I'm trying to do multiple endpoints for a single WCF Service, so that each endpoint has its separate interface / methods. I'm using TCP
app.config
:
<configuration>
....
<system.serviceModel>
<services>
<service name="WCFLibrary.CalculatorService">
<host>
<baseAddresses>
<!--<add baseAddress="http://localhost:8788/CalculatorService/" />-->
<add baseAddress="net.tcp://localhost:8523/CalculatorService" />
</baseAddresses>
</host>
<endpoint name="ServiceTCPEndPoint"
address=""
binding="netTcpBinding"
contract="WCFLibrary.ICalculator">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint name="ServiceMexEndPoint" address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
</service>
<service name ="WCFLibrary.MyWorldService">
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:8524/MyWorldService"/>
</baseAddresses>
</host>
<endpoint name="HelloWorldTCPEndpoint"
address=""
binding="netTcpBinding"
contract="WCFLibrary.MyWorld">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint name="HelloWorldMexEndPoint"
address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata/>
<serviceDebug includeExceptionDetailInFaults="True" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
My first endpoint is working, but my second endpoint doesn't work. What could be wrong here. Secondly why can't we browse tcp, like we can do for HTTP. I know we can test tcp using svcutil. Is there anyway to browse TCP.
EDIT:
WCF:
WindowsService: