Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading XML Message
Message
From
21/05/2008 09:15:15
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Reading XML Message
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01318749
Message ID:
01318749
Views:
87
How do I read this XML message into something useful?

Using XMLTOCURSOR I get a field called multiRef, but it contains "SUCCESS NONE 9999506269" which I thought would have been fields themselves. Do I need to manually parse the multiRef field? What was the point of XML again?
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:submitRealtimeRequestResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:realtime">
   <submitRealtimeRequestReturn href="#id0"/>
  </ns1:submitRealtimeRequestResponse>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:SubmitRequestAck" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn:realtime">
   <ack xsi:type="xsd:string">SUCCESS</ack>
   <err xsi:type="xsd:string">NONE</err>
   <id xsi:type="xsd:string">9999506269</id>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>
Next
Reply
Map
View

Click here to load this message in the networking platform