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

Ejecutar formulario de prueba de Weservices desde un server remoto « Bullnet said:

Pingback from  Ejecutar formulario de prueba de Weservices desde un server remoto &laquo; Bullnet

# August 6, 2010 3:52 PM

timw1971 said:

Many thanks. This is soooo simple and works a treat.  Goodness knows how you figured it out.

It's a tad obscure, though. You would have thought Microsoft would provide a similar interface to the display of detailed error messages.

# August 9, 2010 5:54 AM

Spintos said:

Oh thanks! I was looking for it!

# November 13, 2010 12:23 PM

asksuperuser said:

And do you know how to customize this webform for example to have comboboxes ?

# December 11, 2010 11:52 AM

The tiny pesky details that will waste your days on ASP.NET and how to solve them | Savetime On said:

Pingback from  The tiny pesky details that will waste your days on ASP.NET and how to solve them | Savetime On

# December 13, 2010 6:43 PM

syed said:

I am trying to consume asp.net web services

url is

Http://xxx.xxx.xxx.xx(ipaddress in 200 series).

I am using apache axis using java to consume.

I am not able to generate stubs as this url not showing the methods.

The url results showing like that.

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

I am using axis api ,tomcat etc.

pls help me out guys.

Happy new year 2011.

# December 30, 2010 11:32 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)