Newbie - SOAP return message with embedded ZIP file

Rodney rodney_garland at hotmail.com
Fri Dec 30 01:50:01 CET 2005


Hi again, thanks for the help with figuring out how to parse a SOAP return 
message.  I know have a return message that has an embedded ZIP file in it. 
Can anyone help me figure out how to extract this file from the SOAP return 
message.  The message looks as following:

'\x0c 
\x00\x00\x00)\x00)\x00\x00\x05Xuuid:42bd2573-8c94-4b7c-9bd6-a1e29856f751\x00\x00\x00http://schemas.xmlsoap.org/soap/envelope/\x00\x00\x00<?xml 
version="1.0" encoding="utf-8"?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:tns="http://www.ExchangeNetwork.net/schema/v1.0/node.wsdl" 
xmlns:types="http://www.ExchangeNetwork.net/schema/v1.0/node.wsdl" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><wsu:Timestamp 
xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"><wsu:Created>2005-12-30T00:41:54Z</wsu:Created><wsu:Expires>2005-12-30T00:46:54Z</wsu:Expires></wsu:Timestamp></soap:Header><soap:Body 
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><q1:DownloadResponse 
xmlns:q1="http://www.ExchangeNetwork.net/schema/v1.0/node.xsd"><documents 
href="#id1" /></q1:DownloadResponse><soapenc:Array id="id1" 
xmlns:q2="http://www.ExchangeNetwork.net/schema/v1.0/node.xsd" 
soapenc:arrayType="q2:NodeDocument[1]"><Item href="#id2" 
/></soapenc:Array><q3:NodeDocument id="id2" xsi:type="q3:NodeDocument" 
xmlns:q3="http://www.ExchangeNetwork.net/schema/v1.0/node.xsd"><name 
xsi:type="xsd:string">3c613fde-2b1e-46dd-a60e-3c8323517eb0.zip</name><type 
xsi:type="xsd:string">application/x-zip-compressed</type><content 
href="1E679BA1-3183-4A06-A8F8-AD0AC3B0A79F" 
xmlns="http://xml.apache.org/xml-soap" 
/></q3:NodeDocument></soap:Body></soap:Envelope>\n\x10\x00\x00\x00$\x00\x18\x00\x00\x07\

MESSAGE CONTINUES AS ABOVE AND ENDS WITH THE FOLLOWING:

-2b1e-46dd-a60e-3c8323517eb0.xmlPK\x05\x06\x00\x00\x00\x00\x01\x00\x01\x00V\x00\x00\x00I\x07\x00\x00\x00\x00\x00\x00\x00'

Sorry for being so helpless on this.

Thanks for any help you can give.






More information about the Python-list mailing list