ASP.NET Webservices - "The test form is only available for requests from the local machine."

Many times users get an error as "The test form is only available for requests from the local machine." when they try to invoke web service from remote machine.

To enable the Service to be invoked from remote machine, we need to add the following settings to the Web.Config file of the Web Service Application.

<system.web>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
</system.web>
This would enable the Web service to be able to be invoked from remote machine. However, this invoking would work only for simple data types and would not work in the case of complex datatypes.

No comments:

Post a Comment