gsoap web service response truncation on windows
Posted on 2011-10-27
We have a working linux C gsoap client application we are attempting to migrate to Windows under Visual Studio 2008.
The application compiles, links, and runs under Windows, however the soap call response is truncated on Windows but is not on linux. We have shrunk the application down to the minimal soap call possible, and the code works under linux but not windows for identical soap requests. The soap response headers show that the response from the server has calculated the full response (correct content length) but on the windows side the response is consitently truncated in the RECV.log file in the exact same place each time. The full content length is around 20k but it is truncated much earlier than that. (The SENT.log file has recorded a correct request on the windows machine).
I can only assume something is happening with the socket, but am unable to tell what is setup wrong.
The soap connection is being created with the SOAP_IO_KEEPALIVE and SOAP_IO_CHUNK flags.