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

Reply via email to