Tuesday, 11 September 2018

Removing GZIP encoding From mocked service in SOAPUI

For testing purpose, in SOAPUI I mocked an external SOAP interface feedback an expected response.

I met such an exception:  I/O error: Not in GZIP format

The reason: client doesn't require a GZIP format. The way to remove the GZIP encoding is presented as the following screen dump.

press button "on-request-script", and add in the following headers; then the response encoding will be removed.

headers = mockRequest.requestHeaders;
headers.remove("Accept-Encoding");


No comments:

Can Jackson Deserialize Java Time ZonedDateTime

Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...