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

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

I think this is the bug:

org.apache.axis2.databinding.typemapping.SimpleTypeMapper:

    public static Object makeCalendar(String source) {
        return ConverterUtil.convertToDateTime(source);
    }

    public static Object makeDate(String source) {
        return ConverterUtil.convertToDateTime(source).getTime();
    }

Method makeDate should use existing method ConverterUtil.convertToDate instead 
of ConverterUtil.convertToDateTime.


      was (Author: lorjob):
    I think this is the bug:

org.apache.axis2.databinding.typemapping.SimpleTypeMapper:

    public static Object makeCalendar(String source) {
        return ConverterUtil.convertToDateTime(source);
    }

    public static Object makeDate(String source) {
        return ConverterUtil.convertToDateTime(source).getTime();
    }

Method makeDate should use existing method: ConverterUtil.convertToDate instead 
of ConverterUtil.convertToDateTime.

  
> 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