作为客户端的时候
soap_begin_recv
//发送完请求报文 获取请求报文信息
g_str_reqXml.clear();
std::string strBuf;
std::string::size_type pos1= std::string::npos;
std::string::size_type pos2 = std::string::npos;
strBuf = soap->buf;
pos1 = strBuf.find("<?xml",0);
pos2 = strBuf.find("</SOAP-ENV:Envelope>",0);
if(pos1!=std::string::npos && pos2!=std::string::npos)
{
g_str_reqXml = strBuf.substr(pos1,pos2-pos1+20);
}
soap_body_end_in
//接收完应答报文 获取应答报文信息
g_str_resXml.clear();
std::string strBuf;
std::string::size_type pos1= std::string::npos;
std::string::size_type pos2 = std::string::npos;
pos1= std::string::npos;
pos2 = std::string::npos;
soap->buf[SOAP_BUFLEN-1] &#
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)