?
Solved

gsoap web service response truncation on windows

Posted on 2011-10-27
3
Medium Priority
?
655 Views
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.



0
Comment
  • 2
3 Comments
 
LVL 3

Expert Comment

by:komar
ID: 37042204
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
0
 

Accepted Solution

by:
AlwaysSomethingToLearn earned 0 total points
ID: 37046323
Problem solved by recompiling the code under VS2005 instead of VS2008 and the issue resolved itself. Go figure.
0
 

Author Closing Comment

by:AlwaysSomethingToLearn
ID: 37068326
Fixed it
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
There's never been a better time to become a computer scientist. Employment growth in the field is expected to reach 22% overall by 2020, and if you want to get in on the action, it’s a good idea to think about at least minoring in computer science …
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Suggested Courses

621 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