Home > Uncategorized > WebService: Request format is unrecognized for URL unexpectedly ending in /myMethodName

WebService: Request format is unrecognized for URL unexpectedly ending in /myMethodName

When consuming a WebService using VBScript in an HTML file, I got the following error:

Request format is unrecognized for URL unexpectedly ending in /myMethodName

Add the following to the web.config of the WebService Virtual Directory since GET and POST are disabled by default in ASP.NET 2.0 and greater:

<configuration>
    <system.web>
    <webServices>
        <protocols>
            <add name="HttpGet"/>
            <add name="HttpPost"/>
        </protocols>
    </webServices>
    </system.web>
</configuration>

Also see:
http://support.microsoft.com/default.aspx?scid=kb;en-us;819267 
or
http://aspadvice.com/blogs/ssmith/archive/2007/09/04/FIX-Request-format-is-unrecognized-for-URL-unexpectedly-ending-in.aspx

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: