Forum Discussion

ngupta1's avatar
ngupta1
New Contributor
5 years ago

SOAPUI response with attachment

I have a SOAP call which gets a file in the response. It is a gz file. I want to get this gz file. In the Attachments tab of the response, I do see a file abc.gz, with Content-type application/gzip, and Type XOP.

I have tried setting up the Request Properties - I have Enable MTOM as true. I have also specified a dump file.

The dump file is not a gzip file, but a XOP file. It has a header

--uuid:273aa462-94dc-405a-9972-82904edfb02e
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <root.message@cxf.apache.org>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:abcResponse xmlns:ns2="<url>"><return><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:1b73858f-12b5-4709-99d1-66974e55499c-22@cxf.apache.org"/></return></ns2:abcResponse></soap:Body></soap:Envelope>
--uuid:273aa462-94dc-405a-9972-82904edfb02e
Content-Type: application/gzip
Content-Transfer-Encoding: binary
Content-ID: <1b73858f-12b5-4709-99d1-66974e55499c-22@cxf.apache.org>
Content-Disposition: attachment;name="abc.gz"

 

and the rest is binary data. My question is - how do I extract just the gz file from this?