axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mauro Molinari (JIRA)" <>
Subject [jira] Commented: (AXIS2-4370) Time portion of java.util.Date is missing from SOAP response in Axis2 1.5
Date Wed, 05 Aug 2009 15:03:14 GMT


Mauro Molinari commented on AXIS2-4370:

I think that Axis2 1.5 does the assumption that:
- if I want to work just with the date I use java.util.Date => so it is mapped to xsd:date
- if I want to work with date and time I use java.util.Calendar => so it is mapped to xsd:dateTime

java.util.Date is not the best way to manage date/time values (for instance, it does not handle
time zones), except if you use it as container to transport a time instant previously determined
using a Calendar (a plain long number would give the same functionality, though).

I quite agree with the choice Axis2 1.5 does, so I don't think this is a "bug", although it
breaks your code because of Axis2 1.4.1 different behaviour.

I would like to hear the opinion of the Axis2 developers on this.


> Time portion of java.util.Date is missing from SOAP response in Axis2 1.5
> -------------------------------------------------------------------------
>                 Key: AXIS2-4370
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.5
>            Reporter: Pétur Runólfsson
>         Attachments: Server-1.4.1.wsdl, Server-1.5.wsdl,, services.xml
> When a method returns a java.util.Date (or an object containing a java.util.Date), only
the date portion is returned in Axis2 1.5:
> <soapenv:Envelope xmlns:soapenv="">
>    <soapenv:Body>
>       <ns:getCurrentTimeResponse xmlns:ns="">
>          <ns:return>2009-06-10</ns:return>
>       </ns:getCurrentTimeResponse>
>    </soapenv:Body>
> </soapenv:Envelope>
> In Axis2 1.4.1, the full date and time was returned:
> <soapenv:Envelope xmlns:soapenv="">
>    <soapenv:Body>
>       <ns:getCurrentTimeResponse xmlns:ns="">
>          <ns:return>2009-06-10T16:22:22.622Z</ns:return>
>       </ns:getCurrentTimeResponse>
>    </soapenv:Body>
> </soapenv:Envelope>
> This change breaks any application that requires the time portion to function correctly.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message