cancel
Showing results for 
Search instead for 
Did you mean: 

SOAPUI response with attachment

Highlighted
New Contributor

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?

Tags (3)
2 REPLIES 2
Highlighted
Community Hero

@ngupta1


Try below link.


Use appropriate file extension in the script


https://community.smartbear.com/t5/SoapUI-Open-Source/Saving-attachments-automatically/td-p/880


Regards,
Rao.
Highlighted
New Contributor

I have to write a script to get the file? Is there an easier way?

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors