作为客户端的时候
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] &#
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] &#