Re: VB6 and SOAP Toolkit 3.0
Time to use your friends (yahoo, google, ask, answers, bing) and search for "vb6 soap toolkit 3.0 tutorial" as I found a few out there...
Good Luck
Re: VB6 and SOAP Toolkit 3.0
Thanks vb5prgrmr
Right now I'm following two paths :
1.- Learning about SOAP, WSDL, XML, etc. And I know that I will solve the problem... But it will take time!
2.- Searching for practical examples just to short the time and finish the job... but believe me, there're a lot of tutorials about SOAP Toolkit, but simple ones... and as far as I know, I need to manage complex data types using the generic type mapper to serialize or use the XMLDOM... etc.
JG
Re: VB6 and SOAP Toolkit 3.0
Quote:
Originally Posted by
jggtz
2.- Searching for practical examples just to short the time and finish the job... but believe me, there're a lot of tutorials about SOAP Toolkit, but simple ones... and as far as I know, I need to manage complex data types using the generic type mapper to serialize or use the XMLDOM... etc.
JG
Search on http://planet-source-code.com
Re: VB6 and SOAP Toolkit 3.0
Thanks
It was easier than I thought
After studying the meaning of each element from the wsdl , the next is the code I'm using
Code:
Dim MySoap As New MSSOAPLib30.SoapClient30
'
'
'
Dim MyIntProveedor As String
Dim MyStrxml As String
Dim MyIntrespuesta As Integer
Dim Msg As String
MyIntProveedor = "9999"
MyStrxml = "...here goes xml string..."
Call MySoap.MSSoapInit("http://www.dico.xxx/QA/servlet/xxxcargacfd?wsdl", "PRVCargaCFD")
MyIntrespuesta = MySoap.Execute(MyIntProveedor, MyStrxml)
Select Case MyIntrespuesta
Case 0: Msg = "O.K."
Case 1: Msg = "Intproveedor is not valid"
Case 2: Msg = "Error:2"
Case 3: Msg = "Error:3"
Case 4: Msg = "Error:4"
Case 5: Msg = "Error:5"
Case -1: Msg = "XML has an invalid format"
End Select
MsgBox Msg, vbInformation, "Response from WebService"
Set MySoap = Nothing
(Now I'm dealing with the xml format, if need envelope or not, etc.)
JG