[
https://issues.apache.org/jira/browse/AXIS2-4370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12884239#action_12884239
]
Bernhard Schauer commented on AXIS2-4370:
-----------------------------------------
b) One approach could be to serialize all Date types to xs:DateTime cause it
seems that this is what they are. On the other side of the communication Axis2
abstractly know what it expects on one side from the wsdl on the other from the
Java classes. The format therefore might be parsed with DateFormat.parse() or
custom if required to support all possible cases defined in XML specification.
I would not parse a java.util.calendar to xs:DateTime as this does not fit in
all cases: only when GregorianCalendar is used, cause the calendar used is not
contained in the serialized form. Thus I'd serialize java.util.Calendar custom
or as xs:DateTime but then converted to a Gregorian formatted date, as ISO
defines the international dates as Gregorian ones. The latter one would require
a data change and thus is needed to be documented (to be seen in README file or
Homepage).
I know that there is currently just the GregorianCalendar implemented, but the
Java "design" is not limited to. As more calendar systems may be supported in
future, I'd appreciate a clean implementation and not a "quick and dirty" one.
> 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: 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]