axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ros...@apache.org
Subject cvs commit: xml-axis/c/src/soap SoapHeader.h SoapHeader.cpp
Date Fri, 27 Jun 2003 05:56:07 GMT
roshan      2003/06/26 22:56:07

  Modified:    c/src/soap SoapHeader.h SoapHeader.cpp
  Log:
  committing c++ code base
  
  Revision  Changes    Path
  1.3       +16 -1     xml-axis/c/src/soap/SoapHeader.h
  
  Index: SoapHeader.h
  ===================================================================
  RCS file: /home/cvs/xml-axis/c/src/soap/SoapHeader.h,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SoapHeader.h	27 Jun 2003 03:53:08 -0000	1.2
  +++ SoapHeader.h	27 Jun 2003 05:56:07 -0000	1.3
  @@ -75,6 +75,21 @@
   #include "HeaderBlock.h"
   #include "SoapEnvVersions.h"
   
  +/**
  + *	The Header element information item according to SOAP 1.2 specification.
  + *
  + *	The Header element information item has:
  + *   1) A [local name] of Header. 
  + *   2) A [namespace name] of "http://www.w3.org/2003/05/soap-envelope".
  + *   3) Zero or more namespace qualified attribute information items in its [attributes]
property.
  + *   4) Zero or more namespace qualified element information items in its [children] property.
  + *
  + *	Each child element information item of the SOAP Header is called a SOAP header block.
  + *
  + *
  + *	@brief	The Header element information item according to SOAP 1.2 specification
  + */
  +
   class SoapHeader  
   {
   private:
  @@ -82,7 +97,7 @@
   	int serializeAttributes(string&);
   	list<Attribute*> m_attributes;
   	list<Attribute*> m_namespaceDecls;
  -	list<HeaderBlock*> m_headerEntries;
  +	list<HeaderBlock*> m_headerBlocks;
   	//string m_strHeaderSerialized;
   public:
   	int addNamespaceDecl(Attribute* pAttribute);
  
  
  
  1.3       +8 -8      xml-axis/c/src/soap/SoapHeader.cpp
  
  Index: SoapHeader.cpp
  ===================================================================
  RCS file: /home/cvs/xml-axis/c/src/soap/SoapHeader.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SoapHeader.cpp	27 Jun 2003 03:53:08 -0000	1.2
  +++ SoapHeader.cpp	27 Jun 2003 05:56:07 -0000	1.3
  @@ -80,14 +80,14 @@
   SoapHeader::~SoapHeader()
   {
   	//deletion of Header Entries
  -	list<HeaderBlock*>::iterator itCurrHeaderBlock= m_headerEntries.begin();
  +	list<HeaderBlock*>::iterator itCurrHeaderBlock= m_headerBlocks.begin();
   
  -	while(itCurrHeaderBlock != m_headerEntries.end()) {		
  +	while(itCurrHeaderBlock != m_headerBlocks.end()) {		
   		delete *itCurrHeaderBlock;
   		itCurrHeaderBlock++;
   	}
   
  -	m_headerEntries.clear();
  +	m_headerBlocks.clear();
   
   	//deletion of attributes
   	list<Attribute*>::iterator itCurrAttribute= m_attributes.begin();
  @@ -102,7 +102,7 @@
   
   void SoapHeader::addHeaderBlock(HeaderBlock* headerBlock)
   {
  -	m_headerEntries.push_back(headerBlock);
  +	m_headerBlocks.push_back(headerBlock);
   }
   
   int SoapHeader::serialize(string& sSerialized, SOAP_VERSION eSoapVersion)
  @@ -121,9 +121,9 @@
   
   		sSerialized= sSerialized+ ">"+ "\n";
   
  -		list<HeaderBlock*>::iterator itCurrHeaderBlock= m_headerEntries.begin();
  +		list<HeaderBlock*>::iterator itCurrHeaderBlock= m_headerBlocks.begin();
   
  -		while(itCurrHeaderBlock != m_headerEntries.end()) {
  +		while(itCurrHeaderBlock != m_headerBlocks.end()) {
   			iStatus= (*itCurrHeaderBlock)->serialize(sSerialized);
   			if(iStatus==FAIL) {
   				break;
  @@ -151,9 +151,9 @@
   
   	m_strHeaderSerialized= "<SOAP-ENV:Header>";
   
  -	list<HeaderBlock*>::iterator itCurrHeaderBlock= m_headerEntries.begin();
  +	list<HeaderBlock*>::iterator itCurrHeaderBlock= m_headerBlocks.begin();
   
  -	while(itCurrHeaderBlock != m_headerEntries.end()) {
  +	while(itCurrHeaderBlock != m_headerBlocks.end()) {
   		m_strHeaderSerialized= m_strHeaderSerialized + (*itCurrHeaderBlock)->serialize();
   		itCurrHeaderBlock++;
   	}
  
  
  

Mime
View raw message