Click here to Skip to main content
15,894,740 members

how to call java webservice in vb 6

gabenkawan asked:

Open original thread
I am trying to call java web service method in vb6, but always error..
i use SOAP type library v 3.0..
The error is :
Client : Incorrect number of parameters supplied for SOAP request
HRESULT=0x80070057: The parameters is incorrect.
- CLient:Unspecified client error, HRESULT=0x080070057: The parameter is incorrect


this is my listing code :
VB
Private Sub Command8_Click()

Dim clientSOAP As SoapClient30
Set clientSOAP = New SoapClient30
Dim port As New WSDLPort

clientSOAP.mssoapinit "http://dealerhondabali.com:8080/TambahSPKService/TambahSPKService?WSDL;

Dim nResult As Integer
Dim strResult As String

'================method insertDataSPK===============
Dim spkTanggal As String
Dim posId As String
Dim slsId As String
Dim spkNoKtpFakturStnk As String
Dim spkNamaFakturStnk As String
Dim spkAlamatFakturStnk As String
Dim spkKelurahanFakturStnk As String
Dim spkJenisPenjualan As Integer
Dim spkLeasing As String
Dim spkDownPayment As String
Dim spkTenor As String
Dim spkJenisBunga As String
Dim dlrCodeHso As String
Dim createBy As String
Dim createDate As String
Dim updateBy As String
Dim updateDate As String

spkTanggal = "21/06/2012"
posId = "09221001"
slsId = "203872"
spkNoKtpFakturStnk = "5108023112790062"
spkNamaFakturStnk = "I Made Testing"
spkAlamatFakturStnk = "Jalan street gang line"
spkKelurahanFakturStnk = "14"
spkJenisPenjualan = "1"
spkLeasing = "1"
spkDownPayment = "500000"
spkTenor = "36"
spkJenisBunga = "menurun"
dlrCodeHso = "00637"
createBy = "user"
createDate = "21/06/2012"
updateBy = "user"
updateDate = "21/06/2012"

nResult = clientSOAP.insertDataSPK(spkTanggal, posId, slsId, spkNoKtpFakturStnk, spkNamaFakturStnk, _
spkAlamatFakturStnk, spkKelurahanFakturStnk, spkJenisPenjualan, _
spkLeasing, spkDownPayment, spkTenor, spkJenisBunga, dlrCodeHso, createBy, _
createDate, updateBy, updateDate)

End Sub


can any one please help me.
Thank you
Tags: Service, Web Development

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900