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 ra...@apache.org on 2005/01/31 05:37:38 UTC
cvs commit: ws-axis/c/src/soap SoapAttachementHeaders.cpp SoapAttachment.cpp
rangika 2005/01/30 20:37:38
Modified: c/src/soap SoapAttachementHeaders.cpp SoapAttachment.cpp
Log:
Removed unnecessory lines.
Revision Changes Path
1.5 +0 -57 ws-axis/c/src/soap/SoapAttachementHeaders.cpp
Index: SoapAttachementHeaders.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/SoapAttachementHeaders.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- SoapAttachementHeaders.cpp 28 Jan 2005 11:49:23 -0000 1.4
+++ SoapAttachementHeaders.cpp 31 Jan 2005 04:37:38 -0000 1.5
@@ -48,61 +48,16 @@
void SoapAttachementHeaders::addHeader(AxisString name, AxisString value)
{
- //m_AttachHeaders[name] = value;
m_AttachHeaders.push_back (make_pair (name, value));
}
void SoapAttachementHeaders::serialize(SoapSerializer &pSZ)
{
- /*
-
- map<AxisString, AxisString>::iterator itCurrAttchHeader= m_AttachHeaders.begin();
-
- while(itCurrAttchHeader != m_AttachHeaders.end())
-
- {
-
- if (strcmp(((*itCurrAttchHeader).first).c_str(), "Content-Id")==0)
-
- {
-
- pSZ.serialize(((*itCurrAttchHeader).first).c_str(), ": <", NULL);
-
- pSZ.serialize(((*itCurrAttchHeader).second).c_str(), ">\n", NULL);
-
- itCurrAttchHeader++;
-
- }
-
- else
-
- {
-
- pSZ.serialize(((*itCurrAttchHeader).first).c_str(), ":", NULL);
-
- pSZ.serialize(((*itCurrAttchHeader).second).c_str(), "\n", NULL);
-
- itCurrAttchHeader++;
-
- }
-
- }
-
- */
for (unsigned int i = 0; i < m_AttachHeaders.size (); i++)
{
if (m_AttachHeaders[i].first == "Content-Id")
{
- /*
-
- m_vHTTPHeaders[i].second = (string) pcValue;
-
- b_KeyFound = true;
-
- break;
-
- */
pSZ.serialize((m_AttachHeaders[i].first).c_str(), ": <", NULL);
pSZ.serialize((m_AttachHeaders[i].second).c_str(), ">\n", NULL);
} else {
@@ -115,18 +70,6 @@
AxisString SoapAttachementHeaders::getHeader(AxisString sName)
{
- /*
-
- if (m_AttachHeaders.find(sName) == m_AttachHeaders.end())
-
- return "";
-
- else
-
- return m_AttachHeaders[sName];
-
- */
-
for (unsigned int i = 0; i < m_AttachHeaders.size (); i++)
{
if (m_AttachHeaders[i].first == "Content-Id")
1.5 +0 -4 ws-axis/c/src/soap/SoapAttachment.cpp
Index: SoapAttachment.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/SoapAttachment.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- SoapAttachment.cpp 28 Jan 2005 11:47:09 -0000 1.4
+++ SoapAttachment.cpp 31 Jan 2005 04:37:38 -0000 1.5
@@ -44,8 +44,6 @@
SoapAttachment::SoapAttachment()
{
m_AttachementHeaders = new SoapAttachementHeaders();
- //Assigning to NULL
-
m_AttachementBody = 0;
}
@@ -72,7 +70,6 @@
{
/* Serialize the Attachment Headers */
pSZ.serialize("\n", NULL);
-
m_AttachementHeaders->serialize(pSZ);
/* Serialize the Attachment Body */
@@ -80,7 +77,6 @@
pSZ.serialize("\n", NULL);
pSZ.serializeAsChardata(m_AttachementBody, XSD_BASE64BINARY);
}
-
pSZ.serialize("\n", NULL);
}