【发布时间】:2010-01-05 11:40:43
【问题描述】:
创建一个新的 ASP.NET Web 服务后,我只希望它用于support HTTP-POST for incoming data。如何强制 WSDL 反映该策略?
客户端的 WSDL 应该如何仅启用 HTTP-POST 并在 WSDL 中禁止 SOAP 1.1 和 SOAP 1.2?
解决办法:
<system.web>
<webServices>
<protocols>
<clear />
<add name="HttpPost"/>
<add name="Documentation"/>
</protocols>
<conformanceWarnings>
<remove name='BasicProfile1_1'/>
</conformanceWarnings>
</webServices>
【问题讨论】:
-
我修改了我的答案 - 新答案应该适合你。
标签: asp.net web-services http wsdl