我想将http
方案绑定从basicHttpBinding
更改为wsHttpBinding
。我知道我可以覆盖它到app.config
。但是,这将需要更改所有受影响的WCF主机应用程序中的设置。WCF中存储的默认协议映射在哪里
我也找不到machine.config中的协议映射部分。
默认的协议映射如下。
<protolMapping>
<add scheme ="http" binding="basicHttpBinding" bindingConfiguration="" />
<add scheme ="tcp" binding="netTcpBinding" bindingConfiguration="" />
..
</protocolMapping>
改变后应该看起来像。
<protolMapping>
<add scheme ="http" binding="wsHttpBinding" bindingConfiguration="" />
<add scheme ="tcp" binding="netTcpBinding" bindingConfiguration="" />
..
</protocolMapping>
不要发布代码的屏幕快照。相反,发布代码。如果您不知道如何正确格式化代码,请单击格式工具栏右侧的大胖橙色问号。 – Charles
编辑并移除屏幕抓图。 – Tilak