[ 
https://issues.apache.org/jira/browse/AXIS2-4370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231669#comment-13231669
 ] 

Bernhard Schauer edited comment on AXIS2-4370 at 3/16/12 10:16 PM:
-------------------------------------------------------------------

@Sagara
If you look at the .wsdl files attached to this ticket then you'll see that the 
behaviour of Axis2 changed from 1.4.1 to 1.5 so, that java.util.date mapped to 
xsd:DataTime in 1.4.1 and mapps to xsd:Date after 1.5. That's one of the 
initial points of this Ticket. As there is a data loss starting with Axis2 1.5 
this is clearly a bug and not "Not A Problem" in my opinion.
One thing ignored here is the fact, that the behaviour changed between 1.4 and 
1.5, so one can't update Axis2 to 1.5 if you rely on having java.util.Date 
objects being transferred correctly.  
                
      was (Author: cruxy):
    @Sagara
If you look at the .wsdl files attached to this ticket then you'll see that the 
behaviour of Axis2 changed from 1.4.1 to 1.5 so, that java.util.date mapped to 
xsd:DataTime in 1.4.1 and mapps to xsd:Date after 1.5. That's one of the 
initial points of this Ticket. As there is a data loss starting with Axis2 1.5 
this is clearly a bug and not "Not A Problem" in my opinion.  
                  
> 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
>            Assignee: Sagara Gunathunga 
>         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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to