Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run WEB services - how to?
Message
De
12/04/2005 05:46:07
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
01002698
Message ID:
01003629
Vues:
21
Hi,

>Is there anything similar and simple in VFP, as in VB.NET

Fraid not. If .NET's an option it's far simpler. A couple of ideas that may make a MSSOAP/VFP solution less painful:
Response = Action.doSingleRecord(Request)
oDoc = Response.item(0).ownerDocument.documentElement
* Make a file copy of the XML that you can examine it using IE:
=STRTOFILE(oDoc.xml,"response.xml") 
* Use MSXML to make parsing easier:
oXML = CREATEOBJECT("Msxml2.DOMDocument")
oXML.loadXML(oDoc.xml)
*e.g's:
lcErrorCode = oXML.selectSingleNode("//ServiceResult/ErrorCode").text
lcCountryAbbrev =  oXML.selectSingleNode("//Country/Abbreviation").text
You could also use MSXML to simplify the creation of the Request XML
HTH,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform