The WebService test form can only be used for requests from local computers.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.