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!
  • Students Click Here

*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.

Students Click Here


VB6 Soap Problem

VB6 Soap Problem

VB6 Soap Problem

Appreciate some help if someone has time.
Trying to use soap have tried all sorts of ways
Have come up with a simple example of one of my tries !@!@@!

Dim clnt As New SoapClient30
Dim strsvc As String

clnt.MSSoapInit "https://www.thesite.com/api/webservice.wsdl"


Dim Sendit As String

Sendit = ""

Sendit = "<Envelope xmlns=""http://schemas.xmlsoap.org/soap/envelope/"">"
Sendit = Sendit & "<Body>"
Sendit = Sendit & "<getBalance xmlns=""http://ws.service.xxxapi.xb.com/"">"
Sendit = Sendit & "<arg0 xmlns="""">"
Sendit = Sendit & "<username>111111</username>"
Sendit = Sendit & "<password>22222</password>"
Sendit = Sendit & "<referrerOverrideSystemId></referrerOverrideSystemId>"
Sendit = Sendit & "<referrerOverrideSystemPassword></referrerOverrideSystemPassword>"
Sendit = Sendit & "</arg0>"
Sendit = Sendit & "</getB>"
Sendit = Sendit & "</Body>"
Sendit = Sendit & "</Envelope>"

strsvc = clnt.geta(Sendit)

MsgBox (strsvc)

Has this got any chance of working ?????

Geta is a valid call in the wsdl provided

I am getting an error incorrect number of paramaters
@ strsvc = clnt.geta(Sendit)

Regards Trob70

RE: VB6 Soap Problem





And what is geta? That's not an MS SoapClient method I recognize (but I'm not a great Soap user, so I may simply have missed it)

RE: VB6 Soap Problem

Thanks Strongm ...appreciate your interest again ( i have been quiet for a while now..no real problems.)

But this soap thing is messy i do not really understand it.. @!!@!@

The /getB was a typing error when retyping it here it should be /GetBalance Sorry

The Geta is a function in the .wsdl pretty sure its ok.

ie its in clnt.MSSoapInit "https://www.thesite.com/api/webservice.wsdl"

I was mainly wondering if the way i am doing it is correct...?? am i missing something in this call ....or
is there a better way or a different function to run 'soap' in vb6

Regards Trob70

RE: VB6 Soap Problem

No, the SoapClient is about the easiest way of doing SOAP in VB6.

>I am getting an error incorrect number of paramaters

Presumably runtime error -2147024809 (80070057), which is a SOAP error rather than VB. Just seems like you are providing fewer params than the Soap operation called geta is expecting. But since I'm certainly not familiar with the particular WDSL document you are using I can't really comment further.

RE: VB6 Soap Problem

SOAP is becoming obsolete very quickly. It added complexity and in the end proved to be unsupportable because changes tend to break the programs of everyone involved.

That's why most people have moved to simpler REST-like approaches. These can be built with extensisbility in mind so changes don't break everybody so often.

Maybe you could see if they support another API format. Most SOAP service providers have had to in order to retain business.

RE: VB6 Soap Problem

Thanks all for the advice

Am going to give ''soap'' a miss and forget the project

The api is probably 10 years old and i am getting no support from the sever admin people.

Thanks again

Trob70 (now 74!!!... too old for it all!!)

RE: VB6 Soap Problem


... i am getting no support from the sever admin people.

Box jockeys are the most overpaid and overtrustworthy people in IT organizations. Most of them have education and skills barely on a par with what we used to call "computer operators" in the old days, but they're often now paid as much or more than programmers even though their contributions are overwhelmingly negative.

These lilies of the field are often related to somebody in power. Think of them as the 17th Century idle French courtesans of our day. You have to be good at your Benjamin Franklin shtick to win them over and keep them on your side to get anywhere, which usually means stepping in and doing their jobs for them and letting them take credit for it.

Thankfully the move to cloud computing is gradually eliminating these parasites in droves. Of course that just means they get promoted into even more "made up" jobs instead but at least they're out of your hair, if you have any left by then.

RE: VB6 Soap Problem



I agree entirely... You comments are exactly what i have become to think .. I love your comments , very well put...
Makes me feel a lot better..

Regards Robert

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