测试webservice的时候,如果出现这个错误:"The test form is only available for requests from the local machine" 在web.config中加入以下配置,就可以解决问题. <system.web> <webServices> <protocols> <add name="HttpGet"/> …
当您尝试从远程计算机访问 Web 服务时,不会显示“调用”按钮.并且,您会收到以下错误信息: The test form is only available for requests from the local machine 解决方法: 1.通过编辑 Web 服务所在的 vroot 的 Web.config 文件,可以启用 HTTP GET 和 HTTP POST.以下配置同时启用了 HTTP GET 和 HTTP POST: <configuration> <system.web&…