Click here to Skip to main content
11,581,515 members (66,777 online)
Rate this: bad
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
Edited 13-May-11 7:43am
ZeeroC00l at 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
0 OriginalGriff 340
1 Sergey Alexandrovich Kryukov 160
2 Frankie-C 105
3 RyanDev 84
4 virusstorm 84
0 OriginalGriff 1,273
1 Sergey Alexandrovich Kryukov 900
2 Abhinav S 617
3 F-ES Sitecore 500
4 Suvendu Shekhar Giri 433

Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 15 May 2011
Copyright © CodeProject, 1999-2015
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