Forum Discussion

ngupta1's avatar
New Contributor
6 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

Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <>

<soap:Envelope xmlns:soap=""><soap:Body><ns2:abcResponse xmlns:ns2="<url>"><return><xop:Include xmlns:xop="" href=""/></return></ns2:abcResponse></soap:Body></soap:Envelope>
Content-Type: application/gzip
Content-Transfer-Encoding: binary
Content-ID: <>
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?