axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lucas Moten (JIRA)" <>
Subject [jira] Commented: (AXIS2-4075) AXIS2 1.4.1 does not support java.util.Date type
Date Fri, 19 Mar 2010 02:08:27 GMT


Lucas Moten commented on AXIS2-4075:

I have this problem in my environment under 1.4.x, and unless it was overhauled with Date
vs Calendar I'd assume that 1.5.1 is the exact same issue.  Perhaps the following may be helpful
(either in determining the cause, or for workarounds)

I have objects that use the java 'Date' data type.  When I run java2wsdl, the wsdls generate
with dateTime for both requests and responses.  Then wsdl2java for client stubs are performed.
 I believe the dateTime however gets converted to a Calendar data type which doesn't work.
 So, I have to manually alter the generated WSDLs such that one direction is overridden to
xsd:date, and the other direction is xsd:dateTime.  While not optimal, for fields that truly
are only dates this is doable.  For fields where time is important, I have no solution but
perhaps not using java.util.Date and instead using java.util.Calendar may give greater request
vs response consistency.  I believe this is consistent with MH's and Mauro's comment in that
I'm getting xs:date on responses, and have to populate xs:dateTime on requests.

> AXIS2 1.4.1 does not support java.util.Date type
> ------------------------------------------------
>                 Key: AXIS2-4075
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.4.1
>         Environment: windows xp sp2 + tomcat 5.5 + java 1.5 + axis2 1.4.1
>            Reporter: yong yang
>         Attachments: DateService.aar,, DateService.wsdl, exception.txt
> Hi, I found that the axis2 1.4.1 does not support java.util.Date type.
> 1)WSDL
>  AXIS2 1.4.1 should map java.util.Date to xs:date in the WSDL, rahter than xs:dateTime(see
the attached wsdl). 
> 2)deserialize and serialize ISO xml DATE string
> AXIS2 1.4.1 can not construct a java.util.Date object from a ISO xml date string, for
example, "2001-01-01". It threw an exception, "date string can not be less than 19 charactors".
(more detail can be found in the attached exception.txt). 

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:
For additional commands, e-mail:

View raw message