zoukankan      html  css  js  c++  java
  • WCF配置Tcp协议

    注意点:

    1,<serviceMetadata httpGetEnabled="false"/>  

    2, 

          <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> 

    3,引用地址为:net.tcp://localhost:8001/mex111(可以右键引用的上服务修改那个地址)

    4,源码下载 

  • 相关阅读:
    纯css改变下拉列表select框的默认样式
    jquery 购物车
    如何统计页面标签使用次数?
    uni-app—从安装到卸载
    详解Vue 方法与事件处理器
    LoadRunner
    Python-函数
    Python-函数
    python-列表
    python-循环
  • 原文地址:https://www.cnblogs.com/pnljs/p/3540254.html
Copyright © 2011-2022 走看看