Using web services i'm receiving a message saying 'The test form is only available for requests from the local machine.'
my Service.aspx file is simply:
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "http://bristolmessenger.co.uk")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
}
I was experimenting other day and was working fine. I have not changed anything so mignt be a setting beyond my control as im using shared hosting Any ideas

test form is only available for requests from the local machine?
vgvKarthik
If I use the about I get the message
Parser Error Message: Unrecognized configuration section system.web/protocols.Source Error:
Why
Also I have copied the project via .net from the local machine to our webserver, but the service will not run as it is still pointing to the local machine.
How do I resolve the problem
Keith Sales
I added the <protocols> section (with all protocols supported) to both the local web.config and the machine.config.
I am still getting the message above (local machine)
I am running win2003 server and the webservice runs fine from a win-client,
but my developers want to see it using the test harness.
Anything else I can look for
clint 2
web.config needed:
<
webServices><
protocols><
add name="HttpSoap12" /><
add name="HttpSoap" /><
add name="HttpGet" /><
add name="HttpPost" /></
protocols>Kiran P Patel
I only added
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
to web.config, not to machine.config (both located in the vroot of the production site) and it has fixed my problem