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

MH edited comment on AXIS2-4075 at 3/19/10 10:07 AM:
-----------------------------------------------------

I have tested (on 1.5.1) the attached DataService.java using the POJO way - 
axis creates WSDL on the fly. The date is mapped to xs:date (hundred percent 
sure - attached file: 1_5_1_DateService.wsdl ). That's fine.
Then I generate a client, run it with Date argument and I get "date string can 
not be less than 19 charactors" exception. It looks like you can't use POJO 
style webservice with java.util.Date. If I use soapUI and create an INVALID 
request with "2001-01-01T00:00:00Z" instead of  "2001-01-01" then the service 
works.

      was (Author: lorjob):
    I have tested (on 1.5.1) the attached DataService.java using the POJO way - 
axis creates WSDL on the fly. The date is mapped to xs:date (hundred percent 
sure). That's fine.
Then I generate a client, run it with Date argument and I get "date string can 
not be less than 19 charactors" exception. It looks like you can't use POJO 
style webservice with java.util.Date. If I use soapUI and create an INVALID 
request with "2001-01-01T00:00:00Z" instead of  "2001-01-01" then the service 
works.
  
> AXIS2 1.4.1 does not support java.util.Date type
> ------------------------------------------------
>
>                 Key: AXIS2-4075
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4075
>             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: 1_5_1_DateService.wsdl, DateService.aar, 
> DateService.java, 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to