You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by su...@apache.org on 2004/01/08 09:40:57 UTC
cvs commit: ws-axis/c/src/soap SoapDeSerializer.cpp
susantha 2004/01/08 00:40:57
Modified: c/src/soap Tag: Release-2003_10_26-bugfixes_branch
SoapDeSerializer.cpp
Log:
Removed m_hugebuffer from SoapDeserializer which is no longer used
Revision Changes Path
No revision
No revision
1.17.2.7 +0 -25 ws-axis/c/src/soap/SoapDeSerializer.cpp
Index: SoapDeSerializer.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/SoapDeSerializer.cpp,v
retrieving revision 1.17.2.6
retrieving revision 1.17.2.7
diff -u -r1.17.2.6 -r1.17.2.7
--- SoapDeSerializer.cpp 17 Dec 2003 05:56:56 -0000 1.17.2.6
+++ SoapDeSerializer.cpp 8 Jan 2004 08:40:57 -0000 1.17.2.7
@@ -95,36 +95,11 @@
{
delete m_pHandler;
delete m_pParser;
- delete m_hugebuffer;
}
int SoapDeSerializer::SetInputStream(const Ax_soapstream* pInputStream)
{
m_pInputStream = pInputStream;
-/*
- //---------------------start--------------------------
- //Deserialize
- //---------START XERCES SAX2 SPCIFIC CODE---------//
- //a huge buffer to store the whole soap request stream
- //to store the number of chars returned by get_request_bytes
- int nChars = 0;
- //request a huge number of bytes to get the whole soap request
- //when pull parsing is used this should change
- int intBuffLen = HUGE_BUFFER_SIZE;
- const char* strBuffLen = get_header(pInputStream, "Content-Length");
- if(strBuffLen != NULL && strcmp(strBuffLen, "") != 0)
- {
- intBuffLen = atoi(strBuffLen);
- }
-
- if (NULL != m_pInputStream->transport.pGetFunct)
- m_hugebuffer = (char*) malloc(intBuffLen + 10);
- m_pInputStream->transport.pGetFunct(m_hugebuffer, intBuffLen, &nChars, m_pInputStream->str.ip_stream);
- //if no soap then quit
- if (nChars <= 0) return AXIS_FAIL;
- MemBufInputSource Input((const unsigned char*)m_hugebuffer, nChars , "bufferid");
- //Input.setEncoding("UTF-16");
-*/
SoapInputSource is(m_pInputStream->transport.pGetFunct, m_pInputStream->str.ip_stream);
m_pParser->parse(is);
return m_pHandler->Success();