Skip to content

Ever need to debug a web service from the production server rather than Visual Studio?

January 8, 2010

Ever need to debug a web service from the production server rather than Visual Studio?  Well it’s a pain to do so because for security reasons Microsoft disables the parameter inputs and replaces it with this message.

Test

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

The solution for this is simple, add the following tags to the   <system.web> section of the web.config.

        <webServices>

          <protocols>

            <add name=”HttpGet”/>

            <add name=”HttpPost”/>

          </protocols>

        </webServices>

Now when you load the asmx page it will allow you to enter the required parameters to run your web service.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.