现在的位置: 首页 > 综合 > 正文

使用浏览器测试Web服务时出现提示“The test form is only available for requests from the local machine.”的解决办法

2012年11月05日 ⁄ 综合 ⁄ 共 267字 ⁄ 字号 评论关闭

使用浏览器测试Web服务时出现提示“The test form is only available for requests from the local machine.”的解决办法

在Web服务项目中的Web.config文件中添加如下配置即可:

<system.web>
    <webServices>
        <protocols>
          <add name="HttpGet"/>
          <add name="HttpPost"/>
        </protocols>
    </webServices>
</system.web>

抱歉!评论已关闭.