Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML Format
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
XML Format
Miscellaneous
Thread ID:
00784615
Message ID:
00784615
Views:
62
Below is a fragment of some hierarchical xml that I need to return from a webservice for my web people. I can produce hierarchical xml ok using the XMLDOM but am confused as to some of the SOAP attributes eg: the ARRAY[] attribute for the orderStatus element etc. Is there something I can do in the WSDL ? Can anyone enlighten me as to any clever way in which this is produced or am I stuck manually kludging attributes to match the desired result.
XML fragment :

<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd">
<SOAP-ENV:Body>
<loadResponse>
<order xmlns:ns4215="http://whereever.com.au" xsi:type="ns4215:order">
<orderId xsi:type="xsd:int">999</orderId>
<customerId xsi:type="xsd:string">datalk</customerId>
<orderStatus xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="SOAP-ENC:Array[1,1]">
<item>
<label xsi:type="xsd:string">Order Placed</label>
<value xsi:type="xsd:boolean">1</value>
</item>
<item>
<label xsi:type="xsd:string">Booked Into Production</label>
<value xsi:type="xsd:boolean">1</value>
</item>
</orderStatus>
<customerReference xsi:type="xsd:string">23DF</customerReference>
<billingAddress xmlns:ns7249="http://whereever.com.au" xsi:type="ns7249:address">
<street xsi:type="xsd:string">1 Fake St</street>
<locality xsi:type="xsd:string">Melbourne</locality>
<region xsi:type="xsd:string">VIC</region>
<postalCode xsi:type="xsd:string">3000</postalCode>
<countryName xsi:type="xsd:nil"/>
</billingAddress>
</order>
</loadResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Cheers,
Jamie
Reply
Map
View

Click here to load this message in the networking platform