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>