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 Sergey Alexandrovich Kryukov 275
1 OriginalGriff 230
2 BillWoodruff 173
3 CPallini 155
4 Kamal Rocks 144
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web04 | 2.8.141216.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