首页 新闻 会员 周边 捐助

WCF用TCP跨机器传输信息

0
悬赏园豆:50 [待解决问题]

小弟实现用tcp跨机器传输消息,但是一直没有实现,望高手指导。下面是我的配置文件,请大家帮我看看有什么问题?

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.serviceModel>
    <services>
      <service name="WcfService.Service" behaviorConfiguration="serviceBehavior">
        <host>
          <baseAddresses>
            <add baseAddress="net.tcp://192.168.200.1/myservice"/>
          </baseAddresses>
        </host>
        <endpoint address="" binding="netTcpBinding" contract="WcfService.IService" bindingConfiguration="noSecurity"/>
        <endpoint address="mex" binding ="mexTcpBinding" contract="IMetadataExchange"></endpoint>
      </service>
    </services>

    <behaviors>
      <serviceBehaviors>
        <behavior name="serviceBehavior">
          <serviceMetadata/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>
      <netTcpBinding>
        <binding name="noSecurity">
          <security mode="None"/>
        </binding>
      </netTcpBinding>
    </bindings>
  </system.serviceModel>
</configuration>

赌场游侠的主页 赌场游侠 | 初学一级 | 园豆:175
提问于:2010-11-20 14:27
< >
分享
所有回答(1)
0

你有啥问题?

Launcher | 园豆:45050 (高人七级) | 2010-11-21 09:17
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册