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

Why is this for some of my web services, I get test forms so that I can see the generated xml data, but for other web services I get a message with the message The test form is only available for requests from the local machine. ?

In both cases, I connect to the web service URL from a client side browser, and all web services are created using C #,. NET-3.5.

+7
source share
1 answer

I googled for the Test form is only available for requests from the local machine.

There have been many results, and the consensus is to add these nodes to web.config web services. I have not tried this solution yet, but you can check if your web services that show the test form are deleted with these nodes in web.config. Or you can add it to the web services that provide this message and see if the test form starts remotely.

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

Here are some of the search results.

+13
source

All Articles