Karatas, FERHAT
I would love to change the world, but they won't give me the source code!
Web Services - HTTP GET and HTTP POST Are Disabled
27.12.2006 08:53:06 - Filed under : Web Services
The .NET-connected Web services support HTTP GET, HTTP POST and SOAP protocols. By default, in .NET Framework 1.0, all three protocols are enabled. By default, in .NET Framework 1.1, HTTP GET and HTTP POST are both disabled. This is for security reasons.

The .NET Framework 1.1 defines a new protocol that is named HttpPostLocalhost. By default, this new protocol is enabled. This protocol permits invoking Web services that use HTTP POST requests from applications on the same computer. This is true provided the POST URL uses http://localhost, not http://hostname. This permits Web service developers to use the HTML-based test form to invoke the Web service from the same computer where the Web service resides.

When you try to access the Web service from a remote computer you do not see the Invoke button. And, you receive the following error message:

The test form is only available for requests from the local machine
HTTP GET and HTTP POST may be enabled by editing the Web.config file for the vroot where the Web service resides. The following configuration enables both HTTP GET and HTTP POST:
<add name="HttpGet"/>
<add name="HttpPost"/>

Related Terminology : Web Service, HTTP GET, HTTP POST, Invoke

with 0 comments

Previous | Next
Current Page: 1