Using GSOAP 2.7.14 compiled with WITH_ZLIB option under 64-bit windows 
(although the code is compiled for 32-bit).

I'm making a request to a server and it is returning

I ran it through Fiddler (HTTP debugger) and it was able to deflate it, and I 
also ran the raw data through an InflaterInputStream from the Sharp Zip Library 
and it was able to deflate it.

Tracing through stdsoap2.cpp with a debugger reveals that the inflate() call 
made from soap_recv_raw is failing. I traced into that, and it seems that the 
inflate() function is expecting there to be some sort of header on the data 
that isn't there. It fails on this code in the "case HEAD" block:

if (BITS(4) != Z_DEFLATED) {
    strm->msg = (char *)"unknown compression method";
    state->mode = BAD;
    break;
}

Any advice on how to get this working?

A trace of a failed session can be found at 
http://www.slatner.com/quick/SoapExample.zip

The TestBytes.bin file in there contains the raw binary data that I was able to 
deflate using Sharp Zip Lib's InflaterInputStream.

Reply via email to