Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SOAP how does it work ?
Message
From
05/01/2007 15:27:56
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01182951
Message ID:
01182961
Views:
15
Hi Thierry Soap toolkit is old cause was pre .net way of calling web services, Microsoft discontinued since now everything should use .net, but you can still use it.
soapproxy = CREATEOBJECT("MSSOAP.SoapClient30")
soapproxy.MSSoapInit("http://website/dir/page.asmx?WSDL, "NameOfWebService")
lc = soapproxy.GetCustomerInformation(facilityId, dossierNumber, username, password)
lc will hold the result of the method.
Soaptoolkit will work fine with base types, if you want to pass/receive complex types your best bet is to create a soapproxy in vs.net, build it for com interop and then call it from vfp.

>Hi all, happy new year 2007,
>
>I have a new problem this year... I have to use SOAP toolkit, and I never used that. All I can found on internet seems to be very old.
>
>I have to get information about customers on a website. All information I have is this..
>
>
>POST /zrxtest/zrxpmisbridge/pmisbridge.asmx HTTP/1.1
>Host: www.website.com
>Content-Type: application/soap+xml; charset=utf-8
>Content-Length: length
>
><?xml version="1.0" encoding="utf-8"?>
><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
>  <soap12:Body>
>    <GetCustomerInformation xmlns="http://www.website.com/">
>      <_facilityId>string</_facilityId>
>      <_dossierNumber>string</_dossierNumber>
>      <_username>string</_username>
>      <_password>string</_password>
>    </GetCustomerInformation>
>  </soap12:Body>
></soap12:Envelope>
>
>
>Making this string is easy... but how to send it to the server?
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform