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

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.

Advertisements

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

  1. Pingback: Debugging a web service on production server « Nota bene

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 )

Google+ photo

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

Connecting to %s