Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I have created an asp.net web service which has a method that accepts a string parameter (filter), queries a sql server database and returns the result in XML. I am invoking the web service via soap. When I use a straight soap client (eg soapui) it works fine. HOwever if i call it from a web page using ajax (specifically via jquery), I get the following error:


MSIL
System.InvalidOperationException: Missing parameter: filter. at System.Web.Services.Protocols.ValueCollectionParameterReader.Read(NameValueCollection collection) at System.Web.Services.Protocols.HtmlFormParameterReader.Read(HttpRequest request) at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()


I have checked the soap message using tcpmon and the parameter is defined.

If I change the web method so it has no parameters, it also works fine, so it is some issue with passing parameters via soap and ajax.
Posted
Updated 13-May-11 7:43am
v2
Comments
ZeeroC00l 13-May-11 13:44pm    
-- corrected <pre> tag.

1 solution

please post your code for detail review
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900