views:

36

answers:

0

Hi All,

Issue : On our web server's event viewer, we get few "Request format is unrecognized for URL unexpectedly ending in /SomeWebServiceWebMethod. [e.g. www.xyz.com/services/contactservice/webmethod?parameter1=abc]

Scenario : We are exposing a web service web method to display contact phone numbers on our website via javascript method.

My Research so far : Narrowed down my investigation by different technique and came to a conclusion that there is no issue with the code or any web service. Used fiddler to check the headers and found that the above url is served fine when making the request to a web page on www.xyz.com, but when I make an explicit call to the above url [in Issue], it throws the exception [Request format is.......].

Using the information at http://omaralzabir.com/request_format_is_unrecognized_for_url_unexpectedly_ending_in__somewebservicemethod/ , found out that the call that I make explicit to the above path hasn't got the content-type attribute in the request header.

Has anyone face the issue? Don't want to expose the Get and Post protocol on the web services for the security reasons.

Thanks,

Nimesh