Mark Brown

Nota Bene

Running web service test forms on remote web servers

ASP.NET's default mode is not to allow you access to the web service test forms from remote machines. Loading your ASMX page from a remote machine will produce the following text under the Test section: “The test form is only available for requests from the local machine“. I was able to get around this by placing the following in the Web.Config under the System.Web section:

<webServices>
  <protocols>
    <add name="HttpPost" />
    <add name="HttpGet" />
  </protocols>
</webServices>

Comments

Arnab said:

That was really cool. I have been trying to figure out a way to test remote web services for quite some time and this was the easiest solution I had come across.

Thanks Mark.
# May 27, 2004 7:46 PM

Matt said:

Thanks!

Been looking for this work around for a while.
# June 8, 2004 11:21 AM

Rich Gautier said:

You, sir, ROCK!  This is an awesome work-around - now I don't HAVE to remote log in to my web server just to test.

# July 3, 2007 9:11 PM

my name said:

if I pre-compile the application this does not function

# November 5, 2007 10:04 AM

Masayuki said:

Thanks!

It works fine for me.

# November 6, 2007 1:08 AM

Barry Thomas said:

More Thanks

Excellent!

# November 8, 2007 2:11 PM

Kaustubh (India) said:

Thanks Mark. I had same problem but now is is sorted out when I added these tags in config file

# June 18, 2008 12:08 AM

Siddharth said:

Thanks a tonne Mark. Saved my life. :)

# September 10, 2008 9:14 AM

Himanshu said:

Thanks, I was struggling with this for last 3 days. I have another problem, j2me applications are not able to access my web service. they are able to call my web methods but parameters are passing as null.

# December 3, 2008 4:11 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)