Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to 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:
 

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 8:41am
Edited 13-May-11 8:43am
v2
Comments
ZeeroC00l at 13-May-11 13:44pm
   
-- corrected <pre> tag.

1 solution

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

Solution 1

please post your code for detail review
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 304
1 Sergey Alexandrovich Kryukov 255
2 Shweta N Mishra 216
3 Maciej Los 210
4 PIEBALDconsult 184
0 OriginalGriff 7,660
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,665


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 15 May 2011
Copyright © CodeProject, 1999-2014
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