Rob,

Thanks for the reply.  Is jibx data-binding a Axis 2 feature?

Joshua


On 3/7/07, Rasile, Rob <[EMAIL PROTECTED]> wrote:

 Couple of options here…



First, if you use jibx data-binding you can explicitly define your
mappings – so you can directly go from xsd:dateTime to java types.  You can
even go so far as to write your own custome serializer/deserializer.

Second, try using a javax.xml.datatype.XMLGregorianCalendar rather that
java.util.Calendar from the client.


 ------------------------------

*From:* Joshua White [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, March 07, 2007 8:22 AM
*To:* axis-user
*Subject:* [Axis 1.4.x] How to handle java.util.Date



Hello,



I am having trouble with serializing/deserializing dates.  I am having
axis serialiaze a simple java bean that contains a java.util.Date.  When
the wsdl is generated, it appears as a xsd:dateTime.  As you know, when you
generate the client, this appears as a java.util.Calendar on the client
side.



The problem that I am having is that when the client sends a date (using
java.util.Calendar), it is not being deserialized into a 
java.util.Datecorrectly on the serverside.  Is there a way to specify
java.util.Dates to be mapped to xsd:date instead of xsd:dateTime?  I found
that if I edit the WSDL file manually and chance the datatype to xsd:date
everything works fine.



What is the best way to do this?



Josh



Reply via email to