Today I've tried to publish my web service on aspspider.net. But I've faced the problem that I can't run the webservice method with following message: "The test form is only available for requests from the local machine". I've read some information and found out that you need to edit config file of your application and add there the following declaration to specify that an ASP.NET Web service can use HttpGet and HttpPost protocols to receive request data sent from a client and return response data.
<configuration>
<system.web>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
</system.web>
</configuration>
Now it works perfect.
No comments:
Post a Comment