You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Petr Kadlec (JIRA)" <ji...@apache.org> on 2011/04/11 11:05:05 UTC

[jira] [Commented] (AXIS2-4544) java.util.Date type parameters break ws execution

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

Petr Kadlec commented on AXIS2-4544:
------------------------------------

For some reason this bug fix, although fixed in subversion, is not included in any binary distribution until now.
Anyone else noticed that? Are more bug fixes affected?

> java.util.Date type parameters break ws execution
> -------------------------------------------------
>
>                 Key: AXIS2-4544
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4544
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.5.1
>         Environment: Apache Tomcat/6.0.20
>            Reporter: Mike
>
> There is a problem in Date type parameter processing. Just deploy a pojo with the following method:
> public Date testDate(Date date) {
> 	return date;
> }
> and then invoke the ws with the following request:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="http://test" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <q0:testDate>
> <q0:date>2009-11-18</q0:date>
> </q0:testDate>
> </soapenv:Body>
> </soapenv:Envelope>
> and you get an error.
> In order to fix this problem, you have to change the line 313 in class org.apache.axis2.databinding.typemapping.SimpleTypeMapper from
> return ConverterUtil.convertToDateTime(source).getTime();
> to
> return ConverterUtil.convertToDate(source);

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org