[ https://issues.apache.org/jira/browse/AXIS2-4370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763952#action_12763952 ]
Pétur Runólfsson commented on AXIS2-4370: ----------------------------------------- I fully agree that java.util.Date is not the best way to manage date/time values. However, it is equally bad whether the time is included or not. I don't see how the lack of time zone has any effect on the choice between xs:date and xs:dateTime, a time zone is optional for both of those types. If fact, the xml schema type that is the closest match for java.util.Date is a xs:dateTime without a time zone. Xml schema has a bunch of date/time types, most of which don't have any good match in java.util. If Axis2 is to support xml types other xs:dateTime, I don't think the way to go is to arbitrarily assign Java types to xml types. Instead, Axis2 should allow users to specify types to use (for example Joda-time or JSR-310) along with mappings and formatting/parsing functions. If JSR-310 is approved, it would of course make sense for Axis2 to support it directly. > Time portion of java.util.Date is missing from SOAP response in Axis2 1.5 > ------------------------------------------------------------------------- > > Key: AXIS2-4370 > URL: https://issues.apache.org/jira/browse/AXIS2-4370 > 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, Server.java, > 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="http://www.w3.org/2003/05/soap-envelope"> > <soapenv:Body> > <ns:getCurrentTimeResponse xmlns:ns="http://ws.apache.org/axis2"> > <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="http://www.w3.org/2003/05/soap-envelope"> > <soapenv:Body> > <ns:getCurrentTimeResponse xmlns:ns="http://ws.apache.org/axis2"> > <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.