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 BooleanDeserializerFactory.java SOAPTypeMappingRegistry.java
Date Sun, 08 Jul 2001 00:50:34 GMT
rubys       01/07/07 17:50:34

  Modified:    java/samples/echo TestClient.java
               java/src/org/apache/axis/encoding
                        BooleanDeserializerFactory.java
                        SOAPTypeMappingRegistry.java
  Log:
  Add Base64 support and test
  
  Revision  Changes    Path
  1.11      +1 -0      xml-axis/java/samples/echo/TestClient.java
  
  Index: TestClient.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/echo/TestClient.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TestClient.java	2001/07/08 00:02:11	1.10
  +++ TestClient.java	2001/07/08 00:50:33	1.11
  @@ -172,6 +172,7 @@
             new SOAPStruct(3, "three", 3.3F)});
           test("Void", null);
           test("Date", new Date());
  +        test("Base64", "Base64".getBytes());
           test("Decimal", new BigDecimal("3.14159"));
           test("Boolean", Boolean.TRUE);
       }
  
  
  
  1.2       +1 -1      xml-axis/java/src/org/apache/axis/encoding/BooleanDeserializerFactory.java
  
  Index: BooleanDeserializerFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/BooleanDeserializerFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BooleanDeserializerFactory.java	2001/07/08 00:02:12	1.1
  +++ BooleanDeserializerFactory.java	2001/07/08 00:50:34	1.2
  @@ -71,7 +71,7 @@
    * General purpose serializer/deserializerFactory for an arbitrary java bean.
    *
    * @author Sam Ruby <rubys@us.ibm.com>
  - * @see <a href="http://www.w3.org/TR/2001/PR-xmlschema-2-20010330/#boolean">XML
Schema 3.2.7</a>
  + * @see <a href="http://www.w3.org/TR/2001/PR-xmlschema-2-20010330/#boolean">XML
Schema 3.2.2</a>
    */
   public class BooleanDeserializerFactory implements DeserializerFactory {
   
  
  
  
  1.19      +3 -1      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.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- SOAPTypeMappingRegistry.java	2001/07/08 00:02:12	1.18
  +++ SOAPTypeMappingRegistry.java	2001/07/08 00:50:34	1.19
  @@ -73,6 +73,7 @@
       public static final QName XSD_LONG = new QName(Constants.URI_CURRENT_SCHEMA_XSD, "long");
       public static final QName XSD_SHORT = new QName(Constants.URI_CURRENT_SCHEMA_XSD, "short");
       public static final QName XSD_DECIMAL = new QName(Constants.URI_CURRENT_SCHEMA_XSD,
"decimal");
  +    public static final QName XSD_BASE64 = new QName(Constants.URI_CURRENT_SCHEMA_XSD,
"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");
  @@ -209,6 +210,7 @@
           addSerializer(java.lang.Long.class, XSD_LONG, se);
           addSerializer(java.lang.Short.class, XSD_SHORT, se);
           addSerializer(java.util.Date.class, XSD_DATE, new DateSerializer());
  +        addSerializer(byte[].class, XSD_BASE64, new Base64Serializer());
           addSerializer(java.math.BigDecimal.class, XSD_DECIMAL, se);
           
           addDeserializersFor(XSD_STRING, java.lang.String.class, new StringDeserializerFactory());
   
  @@ -219,7 +221,7 @@
           addDeserializersFor(XSD_LONG, java.lang.Long.class, new LongDeserializerFactory());
           addDeserializersFor(XSD_SHORT, java.lang.Short.class, new ShortDeserializerFactory());
           addDeserializersFor(XSD_DECIMAL, java.math.BigDecimal.class, new DecimalDeserializerFactory());
  -        addDeserializersFor(XSD_DECIMAL, java.math.BigDecimal.class, new DecimalDeserializerFactory());
  +        addDeserializersFor(XSD_BASE64, byte[].class, new Base64Serializer.Base64DeserializerFactory());
   
           // handle the various datetime QNames...
           addDeserializerFactory(
  
  
  

Mime
View raw message