axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/soap SoapEnvelope.cpp SoapEnvelope.h SoapSerializer.cpp
Date Mon, 14 Feb 2005 13:45:47 GMT
samisa      2005/02/14 05:45:47

  Modified:    c/src/soap SoapEnvelope.cpp SoapEnvelope.h
                        SoapSerializer.cpp
  Log:
  Fixed the bug where duplicate namspaces appeared when setting SOAP version.
  Fix for AXISCPP-368
  
  Revision  Changes    Path
  1.32      +5 -0      ws-axis/c/src/soap/SoapEnvelope.cpp
  
  Index: SoapEnvelope.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapEnvelope.cpp,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- SoapEnvelope.cpp	9 Feb 2005 11:30:54 -0000	1.31
  +++ SoapEnvelope.cpp	14 Feb 2005 13:45:47 -0000	1.32
  @@ -281,6 +281,11 @@
       return AXIS_SUCCESS;
   }
   
  +void SoapEnvelope::clearStandardNamespaceDecl()
  +{
  +    m_StandardNamespaceDecls.clear();
  +}
  +
   int SoapEnvelope::serializeStandardNamespaceDecl(SoapSerializer &pSZ)
   {
       list<const Attribute*>::iterator itCurrNamespaceDecl= 
  
  
  
  1.17      +1 -0      ws-axis/c/src/soap/SoapEnvelope.h
  
  Index: SoapEnvelope.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapEnvelope.h,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- SoapEnvelope.h	23 Nov 2004 17:21:04 -0000	1.16
  +++ SoapEnvelope.h	14 Feb 2005 13:45:47 -0000	1.17
  @@ -37,6 +37,7 @@
   private:
       int serializeStandardNamespaceDecl(SoapSerializer& pSZ);
       int addStandardNamespaceDecl(const Attribute* pAttribute);
  +    void clearStandardNamespaceDecl();
       int serializeNamespaceDecl(SoapSerializer& pSZ);
       /* int serializeNamespaceDecl(string&); */
       int serializeAttributes(SoapSerializer& pSZ);
  
  
  
  1.96      +4 -1      ws-axis/c/src/soap/SoapSerializer.cpp
  
  Index: SoapSerializer.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapSerializer.cpp,v
  retrieving revision 1.95
  retrieving revision 1.96
  diff -u -r1.95 -r1.96
  --- SoapSerializer.cpp	9 Feb 2005 11:30:54 -0000	1.95
  +++ SoapSerializer.cpp	14 Feb 2005 13:45:47 -0000	1.96
  @@ -335,6 +335,9 @@
   int SoapSerializer::setSoapVersion(SOAP_VERSION nSoapVersion)
   {
       m_iSoapVersion = nSoapVersion;
  +
  +    m_pSoapEnvelope->clearStandardNamespaceDecl(); // Samisa : AXISCPP-368
  +
       /* here the default namespaces of the SoapEnvelop should be added and 
        * intialized as well. 
        */
  @@ -1160,4 +1163,4 @@
   {
   	return m_pSoapEnvelope->m_pSoapHeader->getCurrentHeaderBlock();
   }
  -AXIS_CPP_NAMESPACE_END
  \ No newline at end of file
  +AXIS_CPP_NAMESPACE_END
  
  
  

Mime
View raw message