axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdinap...@apache.org
Subject cvs commit: ws-axis/c/src/soap SoapDeSerializer.cpp
Date Mon, 11 Jul 2005 10:29:09 GMT
cdinapala    2005/07/11 03:29:09

  Modified:    c/src/soap SoapDeSerializer.cpp
  Log:
  Correct the implementation of nil value check. This will solved the problem in base sample
as well as InteropTestRound1 test execution.
  
  Chinthana
  
  Revision  Changes    Path
  1.171     +8 -8      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.170
  retrieving revision 1.171
  diff -u -r1.170 -r1.171
  --- SoapDeSerializer.cpp	8 Jul 2005 14:43:40 -0000	1.170
  +++ SoapDeSerializer.cpp	11 Jul 2005 10:29:09 -0000	1.171
  @@ -1871,9 +1871,8 @@
       if (RPC_ENCODED == m_nStyle)
       {
   		bool    bNillFound = false;
  -		if (!m_pNode)
  -			m_pNode = m_pParser->next ();
  -        /* wrapper node with type info  Ex: <i xsi:type="xsd:int"> */
  +		m_pNode = m_pParser->next ();
  +        // wrapper node with type info  Ex: <i xsi:type="xsd:int"> 
           if (!m_pNode)
   		{
              return;
  @@ -1896,7 +1895,6 @@
   
           if (bNillFound || (pSimpleType->getType() == getXSDType (m_pNode)))
           {
  -						
   				m_pNode = m_pParser->next (true);   /* charactor node */
   				if (m_pNode && (CHARACTER_ELEMENT == m_pNode->m_type))
   				{
  @@ -1953,11 +1951,11 @@
   				}
   		        else
   				{
  -					/* simpleType may have xsi:nill="true" */
  +					// simpleType may have xsi:nill="true" */
   					//m_pNode = NULL;
  -					/* this is important when deserializing 
  -					 * arrays
  -					 */
  +					// this is important when deserializing 
  +					// arrays
  +					 
   					return;
   				}
           }
  @@ -1969,6 +1967,8 @@
       }
       else
       {
  +	 //DOC_LITERAL	
  +
        if (!m_pNode)
           /* if there is an unprocessed node that may be one left from last 
            * array deserialization
  
  
  

Mime
View raw message