Invalid generated class from wsdl2java for xsd:date
---------------------------------------------------
Key: AXIS-2363
URL: http://issues.apache.org/jira/browse/AXIS-2363
Project: Apache Axis
Type: Bug
Components: WSDL processing
Versions: 1.3
Environment: winxp, jdk 1.4.2_07
Reporter: Ondrej Tisler
wsdl2java from 1.3 axis generate invalid class for type based on xsd:date:
fragment of wsdl:
(xmlns:s="http://www.w3.org/2001/XMLSchema")
<types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://market.e-trace.biz/wse">
<s:complexType name="DateParam">
<s:annotation><s:documentation>Date input parameter. Example of value:
2002-09-24</s:documentation></s:annotation>
<s:simpleContent>
<s:extension base="s:date">
<s:attribute name="Name" type="s:string">
<s:annotation><s:documentation>Name of input
parameter</s:documentation></s:annotation>
</s:attribute>
</s:extension>
</s:simpleContent>
</s:complexType>
</s:schema>
</types>
Important part generated by axis 1.3:
// Simple Types must have a toString for serializing the value
public java.lang.String toString() {
return _value == null ? null : _value.toString();
}
Same part generated by axis 1.2.1:
// Simple Types must have a toString for serializing the value
public java.lang.String toString() {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
return _value == null ? null : sdf.format(_value); //_value.toString();
}
Rest of generated files are same.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira