Smart questions
Smart answers
Smart people
Join Tek-Tips Forums

Member Login

Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

Join Tek-Tips
*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.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Incorrect Number of Parameters Supplied for SOAP request

ontsjc (TechnicalUser) (OP)
10 Feb 03 18:15
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.

glengillman (Programmer)
28 Jul 03 13:42
I am having this same problem.  Did you find a solution to this problem yet?
AGIMA (Programmer)
2 Aug 03 7:24

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.

ontsjc (TechnicalUser) (OP)
4 Aug 03 10:27
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

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!

Back To Forum

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