Connecting Tech Pros Worldwide Forums | Help | Site Map

Help : Consuming Java webservice with VB6...

jeffbroodwar's Avatar
Member
 
Join Date: Oct 2006
Posts: 118
#1: Nov 6 '06
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_Click()

Dim Client As New MSSOAPLib30.SoapClient30

Connect
Client.MSSoapInit (strClient)

txtSoapMessage.Text = Client.sayHi("Jeff")

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=0x80070057: the parameter is incorrect.
-client: unspecified client error. HRESULT=0x80070057: the parameter is incorrect.

-I hope someone can help me with this one..... i'm running out of time... thanx in advance.

debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,511
#2: Nov 3 '07

re: Help : Consuming Java webservice with VB6...


Question moved to Visual Basic Forum.
QVeen72's Avatar
Moderator
 
Join Date: Oct 2006
Location: Bangalore
Posts: 1,385
#3: Nov 3 '07

re: Help : Consuming Java webservice with VB6...


Quote:

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
Reply