I had
the same problem and had to write my own serialisers/desrialisers for ArrayLists
and other unsupported data types. Couldn't find any thing avaialable for these
anywhere!!!!
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
|
This e-mail and any files transmitted with it are for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and
destroy all copies of the original message. Any unauthorised review, use, disclosure,
dissemination, forwarding, printing or copying of this email or any action taken in
reliance on this e-mail is strictly prohibited and may be unlawful.
Visit us at http://www.cognizant.com