Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run WEB services - how to?
Message
From
12/04/2005 05:46:07
 
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
01002698
Message ID:
01003629
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform