webservice远程访问时设置

来源:互联网 发布:淘宝官方的数据工具 编辑:程序博客网 时间:2024/06/02 04:45

webservice远程访问时设置,不能在页面直接进行测试,

页面显示: The test form is only available for requests from the local machine;

 

通过在web.config里添加解决。

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

 

原创粉丝点击