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?3.4KViews0likes2CommentsUpload File in Request Body with different Content-Type and Content-Encoding in SoapUi
Dear SoapUi Team, first of all thank you for the software you provide. I am impressed by the rich features implemented. Sadly I am currently struggling a bit with SoapUi, but I am sure you can help me with that. I want to send binary data as an attachment in the body of a request to a REST API. The attachment is in the body, when the Content-Type and the Content-Encoding Header have the same value, as explained here: https://sqa.stackexchange.com/questions/22224/how-do-you-send-a-zip-file-in-the-request-body-in-soapui-readyapi The thing is that I am sending gzipped Json Data in the body. That means that the correct Content-Type is application/json and the Content-Encoding is application/gzip. Why is the body empty when I set the Content-Type to application/json and the Content-Encoding to application/gzip? Thank you for your help on this. Thank you, Jonas2.7KViews0likes3CommentsServiceV all responses are zipped GZIP, how to send simple content of string?
Hello, no idea why, but each response created by Groovy is put in to GZip. My client is unable to read this kind of responses. Is there any way, how to disable this zipping? My code in response is: context.mockResponse.setResponseContent("some text here - calculated by script") In ServiceV transaction log response view I can see the RAW response in readable form with this text. But in Headers is "Content-Encoding: gzip". When I catch this respnse by WireShark.. I can see, that body content is compressed.. So is correct, because my server expect this GZIP. But I want to simulate situation, when instead of compressed data I am sending simple RAW data. This is the test of configuration. So my server send request to MOCK with Encoding: gzip and I need to send non compressed response to him. Now is compressed. Please tell me, how to turn OFF this feature of ServiceV. Thank you in advance for your advice.Solved2KViews0likes1Comment