By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,986 Members | 1,522 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,986 IT Pros & Developers. It's quick & easy.

VB6 Consumes Java Webservice problem

jeffbroodwar
100+
P: 118
Hi, i'm currently working on a project that involves vb6 to consume java webservice... i had a problem figuring out how to establish the connection. Fortunately i was able to get this thing working... consuming the java service with vb6. But that is if the service will only display text. ex: Hello World !. but if a service like addition,database query,etc. (something that will require input...) it sez... invalid parameters... guess the problem now is on the syntax itself... check this out :

================================================== ===
Private sub Connect()

strClient = "http://localhost:8080/JavaMathService2/JavaMathService2?WSDL"

End sub
================================================== ===

Private sub Button1_Click()



Dim i as IXMLDOMSelection
Dim Client as New mssoaplib30.SoapClient30

Connect
Client.MSSoapInit (strClient)

Set i = Client.databasesample(val(text1.text))
txtbox1.text = i.context.Text


End sub
================================================== ===
just add :
Soap library version 3.0
Microsoft XML, v6.0

an error pops up telling me about missing element....meaning the value of text1.text (ID number) was not read as an input. don't know how to pass this element/value so that it will return to txtbox1 "SODA".

take note : (ID #1 = SODA)

please check this... you might be able to figure it out...... thanx

Regards,
Jeff
Nov 23 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.