Request format is unrecognized for URL unexpectedly ending in '/MyMethod'

Request format is unrecognized for URL unexpectedly ending in ‘/MyWebMethod’.

The following error is returned when I try to call web method of my SOAP web service:

Request format is unrecognized for URL unexpectedly ending in '/MyWebMethod'.  Global_asax.Application_Error 
Errore: Request format is unrecognized for URL unexpectedly ending in '/MyWebMethod'.

To fix the error you need to add the following code to the web.config of Web service :

GET and POST are disabled by default in ASP.NET 2.0 and greater.

See Invoke button from a remote computer

You can use the previous snippet of code when you need to access the Web service from a remote computer and you do not see the Invoke button:

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

More information

http://support2.microsoft.com/default.aspx?scid=kb;en-us;819267