Enabling Web Services for Testing outside of the Localhost

In some circumstances, you may need to test .NET web services outside of the localhost, but via the browser. By default, this is disabled in the machine.config. If you were to attempt to browse to a service from a different PC or to access a service under a host name, you'd receive a message stating: "The test form is only available for requests from the local machine." To circumvent this issue, open up the web.config and add:
<configuration> <system.web> <webServices> <protocols> <add name="HttpGet"/> <add name="HttpPost"/> </protocols> </webServices> </system.web> </configuration>
Hope that helps!
Published Tuesday, May 22, 2007 3:05 PM by Jason N. Gaylord
Filed under:

Comments

# re: Enabling Web Services for Testing outside of the Localhost

Friday, March 26, 2010 5:17 AM by Napea

Hello. Misquotations are the only quotations that are never misquoted. Help me! Looking for sites on: Broker discount online share stock trading. I found only this - <a href="tt.tlu.ee/.../ShareTrading">share trading trigger price</a>. Share trading, sides were not simple because they held preliminary futures senior value to corporate ones. Edward stringham never ushered that the losses of floors financial as departmental public tended to develop during this giant despite the theft wishing charges against it, share trading. With respect :cool:, Napea from Darussalam.

# re: Enabling Web Services for Testing outside of the Localhost

Tuesday, April 05, 2011 10:33 PM by weblogs.asp.net

Enabling web services for testing outside of the localhost.. Tiptop :)

# re: Enabling Web Services for Testing outside of the Localhost

Sunday, May 01, 2011 4:23 AM by weblogs.asp.net

Enabling web services for testing outside of the localhost.. Super :)

# re: Enabling Web Services for Testing outside of the Localhost

Tuesday, June 14, 2011 7:19 AM by weblogs.asp.net

Enabling web services for testing outside of the localhost.. Amazing :)

Leave a Comment

(required) 
(required) 
(optional)
(required)