Bill,

Have you tried to cast the java.sql.Date to java.util.Date because Soap
provided the DateSerializer to de/serialize the java.util.Date, you don't
have to register anything as it is pre-registered.

In case you want to write your own serializer then look at the source from
org.apache.soap.encoding.soapenc.DateSerializer


cheers,
Hung

-----Original Message-----
From: Bill Pfeiffer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 9:35 AM
To: [EMAIL PROTECTED]
Subject: BeanSerializer fails on java.sql.Date


I am trying to return a complex object via soap.  I have registered all
sub-objects and the soap call seems to be working fine.  However, when the
BeanSerializer gets to the java.sql.Date fields on my objects, I get an
IllegalArgumentException thrown on the getMinutes() property.  This property
is deprecated on java.sql.Date, but I wouldn't think that it should be
throwing an exception.

Has anyone come across this yet?  I would think that, with Soap front ending
database access a lot of the time, someone would have solved any issues with
java.sql.Date.

If I have to modify the BeanSerializer to address this, are there any
pointers on doing this?

Thanks,

Bill Pfeiffer


Reply via email to