web service远程测试(.net)

当不是在本地打开web service时会有如下的提示:

The test form is only available for requests from the local machine

解决办法:

在web.config 的 <system.web>下加入

<webServices>
         <protocols>
            <add name="HttpSoap"/>
            <add name="HttpPost"/>
            <add name="HttpGet"/>
            <add name="Documentation"/>
         </protocols>
      </webServices>

原文地址:https://www.cnblogs.com/ahuo/p/1312640.html