467,161 Members | 854 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,161 developers. It's quick & easy.

VB6 Consumes Java Webservice problem

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

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

Nov 23 '06 #1
  • viewed: 819

Post your reply

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

Similar topics

reply views Thread by arun_005 | last post: by
7 posts views Thread by Christian Wilhelm | last post: by
6 posts views Thread by Sascha Schmidt | last post: by
4 posts views Thread by luckyabhishek@gmail.com | last post: by
reply views Thread by perschrotti@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.