dims 2003/03/21 18:10:11
Modified: java/src/org/apache/axis/encoding
DefaultTypeMappingImpl.java
Log:
WSDL2Java croaks on java.sql.Date and java.util.ArrayList. See
http://marc.theaimsgroup.com/?l=axis-user&m=104825715218988&w=2
Revision Changes Path
1.69 +19 -4
xml-axis/java/src/org/apache/axis/encoding/DefaultTypeMappingImpl.java
Index: DefaultTypeMappingImpl.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/encoding/DefaultTypeMappingImpl.java,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- DefaultTypeMappingImpl.java 18 Mar 2003 16:50:38 -0000 1.68
+++ DefaultTypeMappingImpl.java 22 Mar 2003 02:10:11 -0000 1.69
@@ -269,6 +269,15 @@
// See the SchemaVersion classes for where the registration of
// dateTime (for 2001) and timeInstant (for 1999 & 2000) happen.
+ myRegister(Constants.XSD_DATE, java.sql.Date.class,
+ new DateSerializerFactory(java.sql.Date.class,
+ Constants.XSD_DATE),
+ new DateDeserializerFactory(java.sql.Date.class,
+ Constants.XSD_DATE)
+ );
+
+ // See the SchemaVersion classes for where the registration of
+ // dateTime (for 2001) and timeInstant (for 1999 & 2000) happen.
myRegister(Constants.XSD_DATE, java.util.Date.class,
new DateSerializerFactory(java.util.Date.class,
Constants.XSD_DATE),
@@ -587,6 +596,10 @@
Constants.XSD_SCHEMA)
);
+ myRegister(Constants.SOAP_ARRAY, java.util.ArrayList.class,
+ new ArraySerializerFactory(),
+ new ArrayDeserializerFactory()
+ );
// All array objects automatically get associated with the SOAP_ARRAY.
// There is no way to do this with a hash table,
// so it is done directly in getTypeQName.
@@ -598,10 +611,7 @@
new ArraySerializerFactory(),
new ArrayDeserializerFactory()
);
-// myRegister(Constants.SOAP_ARRAY, java.util.ArrayList.class,
-// new ArraySerializerFactory(),
-// new ArrayDeserializerFactory(),
-// false);
+
myRegister(Constants.SOAP_ARRAY, Object[].class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory()
@@ -609,6 +619,11 @@
// TODO: move it to the DefaultSOAPEncodingTypeMappingImpl class
myRegister(Constants.SOAP_ARRAY12, java.util.Collection.class,
+ new ArraySerializerFactory(),
+ new ArrayDeserializerFactory()
+ );
+ // TODO: move it to the DefaultSOAPEncodingTypeMappingImpl class
+ myRegister(Constants.SOAP_ARRAY12, java.util.ArrayList.class,
new ArraySerializerFactory(),
new ArrayDeserializerFactory()
);