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/encoding SOAPTypeMappingRegistry.java
Date Mon, 09 Jul 2001 14:08:01 GMT
rubys       01/07/09 07:08:00

  Modified:    java/src/org/apache/axis/encoding
                        SOAPTypeMappingRegistry.java
  Log:
  Add support for 2001:base64Binary
  
  Revision  Changes    Path
  1.24      +10 -4     xml-axis/java/src/org/apache/axis/encoding/SOAPTypeMappingRegistry.java
  
  Index: SOAPTypeMappingRegistry.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/SOAPTypeMappingRegistry.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- SOAPTypeMappingRegistry.java	2001/07/08 21:55:37	1.23
  +++ SOAPTypeMappingRegistry.java	2001/07/09 14:07:57	1.24
  @@ -76,7 +76,8 @@
       public static final QName XSD_SHORT = new QName(Constants.URI_CURRENT_SCHEMA_XSD, "short");
       public static final QName XSD_BYTE = new QName(Constants.URI_CURRENT_SCHEMA_XSD, "byte");
       public static final QName XSD_DECIMAL = new QName(Constants.URI_CURRENT_SCHEMA_XSD,
"decimal");
  -    public static final QName XSD_BASE64 = new QName(Constants.URI_SOAP_ENC, "base64");
  +    public static final QName XSD_BASE64 = new QName(Constants.URI_2001_SCHEMA_XSD, "base64Binary");
  +    public static final QName SOAP_BASE64 = new QName(Constants.URI_SOAP_ENC, "base64");
   
       public static final QName SOAP_STRING = new QName(Constants.URI_SOAP_ENC, "string");
       public static final QName SOAP_BOOLEAN = new QName(Constants.URI_SOAP_ENC, "boolean");
  @@ -155,8 +156,10 @@
           }
       }
   
  -    private ArraySerializer arraySer = new ArraySerializer();
  -    private BasicDeserializerFactory factory = new BasicDeserializerFactory();
  +    private Serializer arraySer = new ArraySerializer();
  +    private DeserializerFactory factory = new BasicDeserializerFactory();
  +    private DeserializerFactory base64Ser = 
  +       new Base64Serializer.Base64DeserializerFactory();
   
       /**
        * Alias common DeserializerFactories across the various popular schemas
  @@ -227,7 +230,6 @@
           addDeserializersFor(XSD_DECIMAL, java.math.BigDecimal.class, factory);
           
           addDeserializersFor(XSD_BOOLEAN, java.lang.Boolean.class, new BooleanDeserializerFactory());
  -        addDeserializersFor(XSD_BASE64, byte[].class, new Base64Serializer.Base64DeserializerFactory());
   
           // handle the various datetime QNames...
           addDeserializerFactory(
  @@ -244,6 +246,10 @@
             new QName(Constants.URI_2001_SCHEMA_XSD, "dateTime"),
             java.util.Date.class,
             new DateSerializer.DateDeserializerFactory());
  +
  +        // handle the various base64 QNames...
  +        addDeserializerFactory(SOAP_BASE64, byte[].class, base64Ser);
  +        addDeserializerFactory(XSD_BASE64, byte[].class, base64Ser);
   
           // !!! Seems a little weird to pass a null class here...?
           addDeserializerFactory(SOAP_ARRAY, null, ArraySerializer.factory);
  
  
  

Mime
View raw message