Click here to Skip to main content
13,089,943 members (48,240 online)
Rate this:
Please Sign up or sign in to vote.
I have created an 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:

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 13-May-11 7:41am
Updated 13-May-11 7:43am
ZeeroC00l 13-May-11 13:44pm
-- corrected <pre> tag.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

please post your code for detail review

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170813.1 | Last Updated 15 May 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100