Forum Discussion
hbjastad
Contributor
What do you mean by "one time configuration using preferences"? I need to get this working in code, not the GUI.
The best solution would be to be able to decode the response, which is gzip. I have tried the following alternatives, but they all result in 'java.util.zip.ZipException: Not in GZIP format':
GZIPInputStream gis = new GZIPInputStream(new ByteArrayInputStream(((WsdlSinglePartHttpResponse) response).getRawResponseBody())); GZIPInputStream gis = new GZIPInputStream(new ByteArrayInputStream(response.getRawResponseData())); GZIPInputStream gis = new GZIPInputStream(new ByteArrayInputStream(response.getContentAsString().getBytes()));
Does anyone have code that either turns off the ability to accept compressed responses, or that can decompress a compressed response?
hbjastad
9 years agoContributor
In case the content is base64 encoded, I even tried
String zippedBase64Str = response.getContentAsString(); byte[] bytes = Base64.decodeBase64(zippedBase64Str); GZIPInputStream gis = new GZIPInputStream(new ByteArrayInputStream(bytes));
But the result is the same - "Not in GZIP format"
Related Content
- 5 years ago
- 8 years ago
Recent Discussions
- 17 days ago