您的位置:首页 > 其它

WCF远程调用时关闭安全认证的配置

2015-11-15 20:15 302 查看
WCF远程调用默认是开启安全认证的

如果想关闭,则需要在服务端和客户端的配置文件的 bindings -> netTcpBinding 中将安全模式设置为None

<system.serviceModel>
<bindings>
<netTcpBinding>
<binding maxBufferPoolSize="52428800"
maxBufferSize="6553600"
maxReceivedMessageSize="6553600"
portSharingEnabled="true">
<readerQuotas maxStringContentLength="6553600"/>
<security mode="None"/>
</binding>
</netTcpBinding>
</bindings>

<client>
<endpoint name="ServiceTest"
address="net.tcp://122.144.129.xxx:xxxx/ServiceTest"
binding="netTcpBinding" contract="Contracts.IServiceTest">
</endpoint>
</client>
</system.serviceModel>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: