Question:
After the WebService is deployed as a site, if you can test the WebService locally, "test form can only be used for requests from local computers" or "The test form is only available for requests from the local machine. ",
Reason:
This is because remote access is not enabled.
Solutions:
Add the following configuration section in <system. Web> </system. Web> of Web. config:
<WebServices>
<Protocols>
<Add name = "httpsoap"/>
<Add name = "httppost"/>
<Add name = "httpget"/>
<Add name = "documentation"/>
</Protocols>
</WebServices>
the following description comes from msdn:
protocols specifies the protocol that ASP. NET web services can use to receive request data sent from clients and return response data. The protocol can be used to associate request data with methods and their parameters, and associate response data with methods and their return values. By default, only httpsoap and documentation are enabled. To use httppost and httpget, enable them as shown in the preceding example.
protocols sub-Meta (add, clear, remove)
Add -- add ASP. net web service can be used to receive request data sent from the client and the specified protocol for returning response data. By default, only httpsoap and documentation are enabled.
clear -- remove all protocols from the configuration file.
remove -- removes the specified protocol from the configuration file to process request and response data.