在Web.Config的<configuration>节点添加
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="HttpPostLocalhost"/>
<add name="Documentation"/>
</protocols>
</webServices>
转载于:https://www.cnblogs.com/jinglelin/archive/2004/10/09/50071.html