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

1

7

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.

Tonedeaf answered 5/11, 2012 at 15:7 Comment(1)
possible duplicate of "The test form is only available for requests from the local machine."Railroader
E
14

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

Equilibrist answered 5/11, 2012 at 15:19 Comment(2)
The third link is (effectively) broken. It redirects to Geekswithblogs.net, the End of an Era.Lactoprotein
Thanks @PeterMortensen! I updated the link with the archived post on the Internet Wayback Machine (web.archive.org).Equilibrist

© 2022 - 2024 — McMap. All rights reserved.