关于gsoap返回大字符串问题
最近项目用到gsoap调用webservice服务,其中一个接口返回很大字符串信息,约200M左右,每次调用该接口都会准时在5分钟后断开连接,错误信息是“Error -1 fault in message exchange [no subcode]
"Connection reset by peer"
Detail: [no detail] ” 所使用的gsoap版本为 2.8.39最新版本,
类定义为:
class _WS1__query_USCOREproductAttribute
{ public:
/// A handle to the soap struct context that manages this instance when instantiated by a context or NULL otherwise (automatically set).
struct soap *soap ;
};
class _WS1__query_USCOREproductAttributeResponse
{ public:
/// Element "out" of XSD type xs:string.
std::string* out nullptr 1; ///< Required nillable (xsi:nil when NULL) element.
/// A handle to the soap struct context that manages this instance when instantiated by a context or NULL otherwise (automatically set).
struct soap *soap ;
};
调用方法如下
_WS1__query_USCOREproductAttribute query_USCOREproductAttribute;
_WS1__query_USCOREproductAttributeResponse query_USCOREproductAttributeResponse;
t_iResult = soap_call___WS1__query_USCOREproductAttribute(&gv_ClientSOAP,t_chServiceURL,NULL,&query_USCOREproductAttribute,query_USCOREproductAttributeResponse);
每次调用都是过5分钟整出现如上错误,哪位大侠遇到过如此问题的啊,有需要加什么编译选项么,还是对soap对象进行什么设置啊?跪求!
谢谢