Help : Consuming Java webservice with VB6...

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

    Help : Consuming Java webservice with VB6...

    hi, i need help about consuming webservice created in java with vb6. i've created the webservice in netbeans with sun java server bundle and used MS Soap toolkit 3.0 on the client side.

    i've attached the sample client source code in vb6 :

    _______________ _______________ _______________ _____ _______________ _

    '************** ******* Created procedure *************** **************
    Private Sub Connect()

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

    End sub

    '************** ******* Form events *************** *************** ******
    Private Sub cmdDoHello_Clic k()

    Dim Client As New MSSOAPLib30.Soa pClient30

    Connect
    Client.MSSoapIn it (strClient)

    txtSoapMessage. Text = Client.sayHi("J eff")

    End Sub

    _______________ _______________ _______________ _____ _______________ _

    just a reminder.. i've added microsoft soap type libraryv3.0 in the references window.

    *sayHi is the method of the java webservice

    i'm receiving the following errors :

    client: incorrect number of parameters supplied for soap request hresult=0x80070 057: the parameter is incorrect.
    -client: unspecified client error. HRESULT=0x80070 057: the parameter is incorrect.

    -I hope someone can help me with this one..... i'm running out of time... thanx in advance.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Question moved to Visual Basic Forum.

    Comment

    • QVeen72
      Recognized Expert Top Contributor
      • Oct 2006
      • 1445

      #3
      Originally posted by jeffbroodwar
      strClient = "http://localhost:8080/HiWS/HiWS?WSDL"
      Hi,

      Not very sure about this.. but..
      Check that service is hosted on the localhost at the designated directory. also make sure that your web reference is showing a valid WSDL.
      check strClient
      strclient should be something like :

      strClient = "http://localhost:8080/HiWS/HiWS.cfc?WSDL"

      add ".cfc" and HiWS is repeated..

      Regards
      Veena

      Comment

      Working...