Testing webservices remotely

this is a snippet, reminder for me (or anyone else) trying to debug a webservice remotely.

If you get an error

The test form is only available for requests from the local machine

then edit the web.config file and find the right place to slip this in

<configuration>
    <system.web>
    <webServices>
        <protocols>
            <add name=”HttpGet”/>
            <add name=”HttpPost”/>
        </protocols>
    </webServices>
    </system.web>
</configuration>

Just remember to pull it out, and not leave in place if security is an issue.

for more info see: http://support.microsoft.com/kb/819267

Advertisements