Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


Incorrect Number of Parameters Supplied for SOAP request

Incorrect Number of Parameters Supplied for SOAP request

Hi all,

I'm trying to activate a webservice I created in Visual FoxPro 7.  It is a fairly simple application that returns one value from a database.  When I try to access the webservice, I can tell that the webservice is found, and activated, but when I try to call a method I get the following error:

"Client:Incorrect Number of parameters supplied for SOAP Request HRESULT = 0x80070057"

I know the number of parameters I'm trying to pass to the method is correct (since I wrote and tested the method locally before I built it into a webservice), but now that it's deployed and live, this is what I get.

Any help would be greatly appreciated.


RE: Incorrect Number of Parameters Supplied for SOAP request

I am having this same problem.  Did you find a solution to this problem yet?

RE: Incorrect Number of Parameters Supplied for SOAP request

Create a simple method that returns a know value (ie Your name).  Then try and connect to that method.  If this works start adding parameters until you have reached the the same amount as the real method, while still returning the same value (ie your name).  Dont put any processing code in the new method.  This is just a test to see if your calling application does in fact reach the webservice.

If all works fine then you could simply copy and paste the parameter list into your existing code.

Let me know how you go.

RE: Incorrect Number of Parameters Supplied for SOAP request

Sorry I didn't respond till now, I was out of town.  I'm not an expert on this, but I did get my application to run.  I found that the really odd thing about SOAP 2 that ships with FoxPro 7 and possibly SOAP 3 (I haven't upgraded it) is that it doesn't seem to translate from the development machine to the server.  By this I mean I actually had to build the WSDL and WSML files in place on the server.  Then it works beautifully.

What I did is, after creating my server side dll and checking it without SOAP locally on the development machine, I put this with all it's supporting files on the server in the directory it will reside (SOAP uses hard paths not virtual directories).  I then loaded FoxPro 7 including all the SOAP functionality onto the server and used the FoxPro 7 Web Services wizard to build the WSDL and WSML files in place on the server.  We're using Windows 2K server also.

After doing that, It worked great.  

Good Luck

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close