axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanj...@apache.org
Subject cvs commit: ws-axis/c/src/soap SoapDeSerializer.cpp
Date Mon, 29 Nov 2004 12:46:37 GMT
sanjaya     2004/11/29 04:46:37

  Modified:    c/src/soap SoapDeSerializer.cpp
  Log:
  Fixed a parsing problem where the getHeader method considers whitspace
  coming before a Header Block as a starting element
  
  Revision  Changes    Path
  1.114     +6 -1      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.113
  retrieving revision 1.114
  diff -u -r1.113 -r1.114
  --- SoapDeSerializer.cpp	29 Nov 2004 12:39:30 -0000	1.113
  +++ SoapDeSerializer.cpp	29 Nov 2004 12:46:36 -0000	1.114
  @@ -237,7 +237,12 @@
   				break;
   			}
   
  -			HeaderBlock *pHeaderBlock = new HeaderBlock ();
  +            /* The following is done to ignore anything (eg : the toplevel 
  +               whitespaces) but a start element.*/
  +            if (START_ELEMENT != m_pNode->m_type)
  +                continue;
  +
  +            HeaderBlock *pHeaderBlock = new HeaderBlock ();
   
   			if (m_pNode->m_pchNamespace)
   			{
  
  
  

Mime
View raw message