Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

Both times, I am connecting to the URL of the web-service from a client side browser and all web services are created with C#, .NET 3.5.

like image 983
oshirowanen Avatar asked Nov 05 '12 15:11

oshirowanen


1 Answers

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

There were many results, and the consensus is to add these nodes to the web.config file of the web service. I haven't tried this solution yet, but you can check to see if your web services that shows the test form remotely has this that have these nodes in the web.config. Or, you can add it to the web services that give this message and see if the test form starts appearing remotely.

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

Here are some of the search results

  • Stack Overflow: The test form is only available for requests from the local machine.
  • GeeksWithBlogs: "The test form is only available for requests from the local machine"
  • Microsoft support: INFO: HTTP GET and HTTP POST Are Disabled by Default
like image 101
Adam Porad Avatar answered Sep 27 '22 15:09

Adam Porad