Question:
After WebService is deployed as a site, if the local test webservice can run, the remote display "test form can only be used for requests from the local computer" or "the test form is just available for requests from The local machine. ",
Reason:
That's because there's no reason to turn on remote access.
Solutions:
Add the following configuration section to the <system.web></system.web> center of Web. config
<webServices>
<protocols>
<add name= "HttpSoap"/>
<add name= "HttpPost"/>
<add name= "HttpGet"/>
<add name= "Documentation"/>
</protocols>
</webServices>
The following instructions are from MSDN:
The Protocols element specifies the protocol that the ASP. NET Web service can use to receive request data sent from the client and to return the response data. The protocol can be used to correlate the request data with the method and its parameters, associating the response data with the method and its return value. By default, only HttpSoap and documentation are enabled. To use HttpPost and httpget, you need to enable them as shown in the previous example.
The child elements of the Protocols are (Add,clear,remove)
add--adds an ASP. NET Web service that can be used to receive request data sent from the client and to return the response data for the specified protocol. By default, only HttpSoap and documentation are enabled.
clear--removes all protocols from the scope of the configuration file.
remove--removes the specified protocol for processing request and response data from within the scope of the configuration file.
The WebService test form can only be used for requests from the local computer