* créer l'objet client SOAP
oProxy = CREATEOBJECT("MSSOAP.SoapClient")
* connexion au service de foxcentral.net
oProxy.MSSoapInit("http://www.foxcentral.net/foxcentral.wsdl")
* la méthode exposée par le service web retourne la table au format XML
cXML = oProxy.GetProviders()
* enregistrer le fichier XML au format natif Visual FoxPro
XMLTOCURSOR(cXML,"FoxCentralNewsProviders",0)
* pour enregistrer le fichier au format natif XML (pour une utilisation ultérieure)
* utiliser la commmande suivante STRTOFILE(cXML, "FoxCentralNewsProviders.xml"
* libérer le client SOAP
RELEASE oProxy
* afficher le résultat
BROWSE