axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: ws-axis/c/src/common BasicTypeSerializer.cpp
Date Fri, 28 Jan 2005 11:57:20 GMT
dicka       2005/01/28 03:57:19

  Modified:    c/src/common BasicTypeSerializer.cpp
  Log:
  Correcting serialization problems with null strings.
  
  Submitted by: Adrian Dick
  
  Revision  Changes    Path
  1.49      +8 -4      ws-axis/c/src/common/BasicTypeSerializer.cpp
  
  Index: BasicTypeSerializer.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/common/BasicTypeSerializer.cpp,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- BasicTypeSerializer.cpp	27 Jan 2005 08:32:37 -0000	1.48
  +++ BasicTypeSerializer.cpp	28 Jan 2005 11:57:18 -0000	1.49
  @@ -159,8 +159,9 @@
              // direct return not good for maintainability 
              //     m_sSZ += " xsi:nil=\"true\"/>\n";
              //     return m_sSZ.c_str ();
  -				m_sSZ += " xsi:nil=\"true\" ";
  +				m_sSZ += " xsi:nil=\"true\">";
               }
  +            else
               {
               	String stringSerializer;
               	m_sSZ += stringSerializer.serialize(pStr);
  @@ -178,8 +179,9 @@
              // direct return not good for maintainability 
              //     m_sSZ += " xsi:nil=\"true\"/>\n";
              //     return m_sSZ.c_str ();
  -				m_sSZ += " xsi:nil=\"true\" ";
  +				m_sSZ += " xsi:nil=\"true\">";
               }
  +            else
               {
               	AnyURI anyURISerializer;
               	m_sSZ += anyURISerializer.serialize(pStr);
  @@ -197,8 +199,9 @@
              // direct return not good for maintainability 
              //     m_sSZ += " xsi:nil=\"true\"/>\n";
              //     return m_sSZ.c_str ();
  -				m_sSZ += " xsi:nil=\"true\" ";
  +				m_sSZ += " xsi:nil=\"true\">";
               }
  +            else
               {
               	XSD_QName QNameSerializer;
               	m_sSZ += QNameSerializer.serialize(pStr);
  @@ -216,8 +219,9 @@
              // direct return not good for maintainability 
              //     m_sSZ += " xsi:nil=\"true\"/>\n";
              //     return m_sSZ.c_str ();
  -				m_sSZ += " xsi:nil=\"true\" ";
  +				m_sSZ += " xsi:nil=\"true\">";
               }
  +            else
               {
               	NOTATION notationSerializer;
               	m_sSZ += notationSerializer.serialize(pStr);
  
  
  

Mime
View raw message