Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 Soap Problem 1

Status
Not open for further replies.

Trob70

Programmer
Sep 25, 2012
89
AU
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 "
DoEvents

Dim Sendit As String

Sendit = ""

Sendit = "<Envelope xmlns="" Sendit = Sendit & "<Body>"
Sendit = Sendit & "<getBalance xmlns="" 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
 
Shouldn't

[tt]</getB>[/tt]

be

[tt]</getBalance>[/tt]?

And what is [tt]geta[/tt]? That's not an MS SoapClient method I recognize (but I'm not a great Soap user, so I may simply have missed it)
 
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 "

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

 
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.
 
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!!)


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

dilettante...

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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top