You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by James Heffernan <mi...@hotpop.com> on 2003/10/30 04:02:10 UTC

dateTime format

I'm having problems serializing a Calendar object into a xsd:dateTime element.  
The Calendar is setup with the correct local timezone but when serialized it 
is defaulting to placing a "Z" character at the end of the field.
Here is a sample
<newDate xsi:type="xsd:dateTime">2004-07-30T19:00:00.000Z</newDate>

When the webservice tries to deserialize this it interprets it as being GMT 
and automatically adds the required offset to transpose it to the local 
timezone.  When an equivalent element is attempted via a different means but 
with the "Z" removed it works OK.

Is there any way of overriding the formatting within axis?

Thanks
James Heffernan