Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, Everyone.
Now I'm working with SOAP in VB6 and I have some trouble.
What I need is to send SOAP to web server and save the result into a XML file.

Here is HttpRequest sample scraped from the site.

POST /Conllect/ExportSvc_JRJC.asmx HTTP/1.1
Host: www.ftp360.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/ExportJRJC"
...

For more detailed information, please see the URL.
https://www.ftq360.net/Collect/ExportSvc_JRJC.asmx?op=ExportJRJC

Please use some information;
user:test106
pwd:test106ftq
Exportid:1001
intSendSchema:1

I installed SOAP Toolkit3.0 and added Microsoft SOAP3.0 Library in VB reference dialog.
After googling, I wrote some code as below and there is no error.
Private Sub Command1_Click()
Dim client
Dim strg As String
Set client = CreateObject("MSSOAP.SoapClient30")
client.MSSoapInit "https://www.ftq360.net/Collect/ExportSvc_JRJC.asmx?wsdl"
End Sub

My trouble is that what I have to do after that!
I'm good at VB but don't know anything about Web Service.
I hope your quick help.
Thanks everybody.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



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