You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by li...@apache.org on 2002/08/29 09:42:24 UTC
cvs commit: xml-axis/contrib/Axis-C++/src/Transport HttpTransport.cpp
lilantha 2002/08/29 00:42:24
Modified: contrib/Axis-C++/src/Transport HttpTransport.cpp
Log:
Fix URL for current changes
Revision Changes Path
1.3 +19 -2 xml-axis/contrib/Axis-C++/src/Transport/HttpTransport.cpp
Index: HttpTransport.cpp
===================================================================
RCS file: /home/cvs/xml-axis/contrib/Axis-C++/src/Transport/HttpTransport.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- HttpTransport.cpp 3 Jun 2002 04:24:12 -0000 1.2
+++ HttpTransport.cpp 29 Aug 2002 07:42:24 -0000 1.3
@@ -320,10 +320,27 @@
if((pos = strLine.find("Content-Length:")) != std::string::npos)
len = atoi(strLine.substr(pos + strlen("Content-Length: ")).c_str());
}
+
m_PayLoad = p_HttpPacket.substr(offset);
- if( m_PayLoad.size() >= len)
- m_bStatus = false;
+ pos = m_PayLoad.rfind('0');
+
+ if(std::string::npos != pos && m_PayLoad[pos+1] != '\"')
+ {
+ //nxtpos = m_PayLoad.find("1df");
+ //if(std::string::npos != nxtpos && '\n' == m_PayLoad[nxtpos+4])
+ {
+ m_bStatus = false; // we have the payload
+ // Extract the SOAP message
+ m_PayLoad = m_PayLoad.substr(m_PayLoad.find('<'));
+ m_PayLoad = m_PayLoad.substr(0, m_PayLoad.rfind('>') + 1);
+ }
+ }
+
+#ifdef _DEBUG
+ std::cout << "Payload:\n" << m_PayLoad << std::endl;
+#endif
+
}