VB6 Consumes Java Webservice problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeffbroodwar
    New Member
    • Oct 2006
    • 118

    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,databa se 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/JavaMathService 2/JavaMathService 2?WSDL"

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

    Private sub Button1_Click()



    Dim i as IXMLDOMSelectio n
    Dim Client as New mssoaplib30.Soa pClient30

    Connect
    Client.MSSoapIn it (strClient)

    Set i = Client.database sample(val(text 1.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....mean ing 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
Working...