A Web Service is written, and it is normal to view the content of WebService in the Intranet. However, when you view WebService on the Internet, the test form is only available for requests from the local machine. so I copied the text and Google it. On the Microsoft technical support website, I found the answer: when you try to access the Web service from a remote computer, the "call" button is not displayed. In addition, you will receive the following error message: the test form is only available for requests from the Local Machine
Solution: You can enable http get and http post by editing the Web. config file of the vroot of the web service. The following configurations enable both http get and http post:
<Configuration>
<System. Web>
<WebServices>
<Protocols>
<Add name = "httpget"/>
<Add name = "httppost"/>
</Protocols>
</WebServices>
</System. Web>
</Configuration>
Alternatively, you can enable these protocols for all web services on the computer by editing the <protocols> section in machine. config. In the following example, http get, http post, and soap are enabled, and http post is also enabled from the local host:
<Protocols>
<Add name = "httpsoap"/>
<Add name = "httppost"/>
<Add name = "httpget"/>
<Add name = "httppostlocalhost"/>
<! -- Documentation enables the documentation/test pages -->
<Add name = "documentation"/>
</Protocols>