ws-soap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanj...@apache.org
Subject cvs commit: xml-soap/java/src/org/apache/soap/encoding SOAPMappingRegistry.java
Date Thu, 06 Dec 2001 19:37:44 GMT
sanjiva     01/12/06 11:37:44

  Modified:    java/src/org/apache/soap/encoding SOAPMappingRegistry.java
  Log:
  added a test so null strings get serialized correctly
  
  Revision  Changes    Path
  1.27      +16 -9     xml-soap/java/src/org/apache/soap/encoding/SOAPMappingRegistry.java
  
  Index: SOAPMappingRegistry.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/encoding/SOAPMappingRegistry.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- SOAPMappingRegistry.java	2001/11/12 19:30:43	1.26
  +++ SOAPMappingRegistry.java	2001/12/06 19:37:44	1.27
  @@ -253,15 +253,22 @@
         throws IllegalArgumentException, IOException {
         nsStack.pushScope();
   
  -      SoapEncUtils.generateStructureHeader(inScopeEncStyle,
  -                                           javaType,
  -                                           context,
  -                                           sink,
  -                                           nsStack,
  -                                           xjmr);
  -
  -      sink.write(Utils.cleanString(src.toString()) + "</" + context + '>');
  -
  +      if (src == null)
  +      {
  +        SoapEncUtils.generateNullStructure(inScopeEncStyle, javaType, context,
  +                                           sink, nsStack, xjmr);
  +      }
  +      else
  +      {
  +        SoapEncUtils.generateStructureHeader(inScopeEncStyle,
  +                                             javaType,
  +                                             context,
  +                                             sink,
  +                                             nsStack,
  +                                             xjmr);
  +        
  +        sink.write(Utils.cleanString(src.toString()) + "</" + context + '>');
  +      }
         nsStack.popScope();
       }
     };
  
  
  

Mime
View raw message