[ https://issues.apache.org/jira/browse/AXIS2-4544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi resolved AXIS2-4544. ------------------------------------------------- Resolution: Fixed fixed with revision 835823 > java.util.Date type parameters break ws execution > ------------------------------------------------- > > Key: AXIS2-4544 > URL: https://issues.apache.org/jira/browse/AXIS2-4544 > Project: Axis 2.0 (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. - You can reply to this email to add a comment to the issue online.