I am experimenting with axis to expose some of our large grained business methods (EJB SessionBeans).  Most of our methods work with an object graph composed largely of XDoclet generated javabeans, but also of some hand coded classes to pull the graph together.  The handcoded classes use ArrayList and the generated beans use java.sql.Date.  I was able to deploy a test method that returned my large object filled with database goodies and I successfully called the method. 
 
When I generated the WSDL I got the following errors:
 
- The class java.util.ArrayList is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.

- The class java.sql.Date is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.

When I try to run the WSDL2Java ant task it bombs due to the presence of these types in the WSDL.  The WSDL actually appears to contain references to schema prefixes that are never declared.

The object graph (basically javabean object that contain other javabean objects) is in production and I really can't change that (ie replace ArrayList with a regular array).  Are there ser/deser out there to handle these types?

I'm aware that I can write my own serializer /deserializers, but aren't there some out there for these common classes (Collections, jdbc types, etc)?

Thanks for any help,

Bill Pfeiffer

Reply via email to