<services>
<service behaviorConfiguration=
"MyBehavior" name=
"WcfService1.Service1">
<host>
<baseAddresses>
<add baseAddress=
"net.tcp://localhost:8001/"/>
</baseAddresses>
</host>
<endpoint address=
"S1" binding=
"netTcpBinding" bindingConfiguration=
"MyTcpBinding" contract=
"WcfService1.IService1"></endpoint>
<endpoint address=
"S2" binding=
"netTcpBinding" bindingConfiguration=
"MyTcpBinding" contract=
"WcfService1.IService1"></endpoint>
<endpoint address="mex111" binding="mexTcpBinding" contract="IMetadataExchange" /><!--这个是必须的--> </service>
</services>