I tested the xml on the 5.5 beta server and it worked without a problem. On the Tango 2000/Witango 5 XML parser does not fully support unicode and prefers Latin-1encoding. Try using an @REPLACE on the XML to before you parse it to either change <?xml version="1.0" encoding="UTF-8"?> to <?xml version="1.0" encoding="ISO-8859-1"?> or remove it altogether. This will not change the bytes of the element values.
Witango Support
On 08/05/2004, at 9:59 AM, MJPinckard wrote:
I'm attempting to use a SOAP service with Witango. After getting a response from the soap server, how do I parse the returned XML so that I can access the variables sent back. Here is a sample of returned XML
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 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:ns4="urn:onTAP"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns4:doGetUtilityListByStateResponse>
<return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="Struct[1]" SOAP-ENC:offset="[0]">
<item>
<name xsi:type="xsd:string">Arizona Public Service Co</name>
<util_id xsi:type="xsd:string">126</util_id>
<state xsi:type="xsd:string">Arizona</state>
<country xsi:type="xsd:string">UNITED STATES</country>
<url xsi:type="xsd:string">http://tariffs.lbl.gov/utility/utility.php? util_id=126</url>
<eia_code xsi:type="xsd:string">803</eia_code></item></return></ns4: doGetUtilityListByStateResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I've tried using <@DOM> but it doesn't work (my guess is because it is a soap-env rather than xml). I've attempted to use <@replace> to replace the soap envelope information with <XML> but that didn't work either...
Any ideas, recommendations?
thanks,
Maggie Pinckard
-- * Margaret Pinckard * [EMAIL PROTECTED] * Principal Research Associate * End-use Forecasting Group * E.O. Lawrence Berkeley National Laboratory
_______________________________________________________________________ _
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
