axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/message RPCHandler.java
Date Tue, 17 Jul 2001 01:53:03 GMT
rubys       01/07/16 18:53:03

  Modified:    java/src/org/apache/axis/encoding Deserializer.java
               java/src/org/apache/axis/message RPCHandler.java
  Log:
  Add support for nil.  Tested with pocketSOAP Echo IntegerArray (No Items)
  data stream.
  
  Revision  Changes    Path
  1.6       +1 -0      xml-axis/java/src/org/apache/axis/encoding/Deserializer.java
  
  Index: Deserializer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/Deserializer.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Deserializer.java	2001/07/16 12:03:46	1.5
  +++ Deserializer.java	2001/07/17 01:53:03	1.6
  @@ -314,6 +314,7 @@
           // ??? Is this the right thing to do here?
           
           if (this.getClass().equals(Deserializer.class) &&
  +            targets != null &&
               !targets.isEmpty()) {
               endIdx = context.getCurrentRecordPos();
               
  
  
  
  1.4       +6 -3      xml-axis/java/src/org/apache/axis/message/RPCHandler.java
  
  Index: RPCHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/RPCHandler.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RPCHandler.java	2001/07/16 17:37:03	1.3
  +++ RPCHandler.java	2001/07/17 01:53:03	1.4
  @@ -131,9 +131,12 @@
                   "' : Couldn't find deserializer for type " + type);
           }
           
  -        dser.registerValueTarget(
  -                                 new Deserializer.FieldTarget(currentParam,
  -                                                                  RPCParam.getValueField()));
  +        String isNil = attributes.getValue(Constants.URI_2001_SCHEMA_XSI, "nil");
  +        if (isNil == null || !isNil.equals("true")) {
  +            dser.registerValueTarget(
  +               new Deserializer.FieldTarget(currentParam, 
  +                   RPCParam.getValueField()));
  +        }
           
           if (DEBUG_LOG) {
               System.out.println("Out RPCHandler.onStartChild()");
  
  
  

Mime
View raw message