467,151 Members | 904 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

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

Help : Consuming Java webservice with VB6...

jeffbroodwar
100+
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.
Nov 6 '06 #1
  • viewed: 2539
Share:
2 Replies
debasisdas
Expert 4TB
Question moved to Visual Basic Forum.
Nov 3 '07 #2
QVeen72
Expert 1GB
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
Nov 3 '07 #3

Post your reply

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

Similar topics

reply views Thread by Srinivas Kotta | last post: by
1 post views Thread by Scott McFadden | last post: by
5 posts views Thread by Preben Zacho | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.