WCF配置Tcp协议
2014-02-08 11:31
309 查看
注意点:
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,源码下载
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,源码下载
相关文章推荐
- Wcf配置TCP协议小结
- IIS7下配置WCF的netTcpBinding
- 基于net.tcp的WCF配置实例解析
- WCF http net.tcp 多协议 设计模式 4(总结)
- WCF 通过net tcp 协议 ,在服务端服务器和客户端服务器之间传输数据,注意配置事项
- WCF net.tcp方式的配置
- jboss5集群中TCP和UDP协议的配置
- wcf入门教程之在.net471中创建一个使用tcp网络协议的wcf控制台开发测试环境
- WCF 配置TCP连接
- WCF 附录 高级主题 配置TCP连接
- iOS开发工具-如何使用网络封包分析工具Charles,通过配置proxy对http、https、tcp、udp 等协议的请求响应过程交互信息进行分析、判断、解决我们移动开发中的遇到的各种实际问题。
- WCF tcpTrace.exe配置
- 基于net.tcp的WCF配置实例解析
- 基于net.tcp的WCF配置实例解析
- wcf入门教程之在.net471中创建一个使用tcp网络协议的wcf windows服务进程
- WCF 配置错误:没有与给定的地址“{0}”匹配的协议绑定。协议绑定在 IIS 或 WAS 配置中的站点级别配置。
- WCF http net.tcp 多协议 设计模式 1
- 关于wcf配置未启动net.tcp监控导致无法访问wcf
- WCF http net.tcp 多协议 设计模式 2
- WCF NetTcpBinding Transport安全模式(2) 默认安全配置