Parsing soap/xml result
MRAB
python at mrabarnett.plus.com
Tue Jun 25 18:50:18 EDT 2013
On 25/06/2013 23:28, miguel olivares varela wrote:
>
> I try to parse a soap/xml answer like:
>
> <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:giftPkgResponse
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns1="http://192.168.2.135:8490/gift-ws/services/SRV_GIFT_PKG">
> <giftPkgReturn soapenc:arrayType="xsd:string[2]"
> xsi:type="soapenc:Array"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> <giftPkgReturn> xsi:type="xsd:string">0</giftPkgReturn">
> <giftPkgReturn> xsi:type="xsd:string">OK</giftPkgReturn>
> xsi:type="xsd:string">
> </giftPkgReturn>
> </ns1:giftPkgResponse>
> </soapenv:Body>
> </soapenv:Envelope>
>
>
[snip]
The XML contains this:
</giftPkgReturn">
That's the problem.
More information about the Python-list
mailing list