gsoap web service response truncation on windows

Posted on 2011-10-27
Last Modified: 2012-05-12

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.

    LVL 3

    Expert Comment

    Please provide some code sample showing how the soap call is initiated, and how your code handles the response. Also, if possible, please provide the code that saves the response to RECV.log

    Accepted Solution

    Problem solved by recompiling the code under VS2005 instead of VS2008 and the issue resolved itself. Go figure.

    Author Closing Comment

    Fixed it

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Introduction A frequent question goes something like this, "How can I show an introductory page to my clients on the first site visit, but not show it again on every visit?"  The answer is by using a cookie.  This article shows the design pattern f…
    Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
    The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now