Bruce G Stewart created AXIS2-5439:
--------------------------------------
Summary: adb codegen WSDL2C emits incorrect code for xsd:time and
xsd:date (de)serialization
Key: AXIS2-5439
URL: https://issues.apache.org/jira/browse/AXIS2-5439
Project: Axis2
Issue Type: New Feature
Components: adb
Affects Versions: 1.6.2
Environment: Java (WinXP host)
Reporter: Bruce G Stewart
Class org.apache.axis2.schema.typemap.CTypeMap assigns the native datatype
axis2_date_time_t to represent xsd:dateTime, xsd:date, and xsd:time in the
generated code.
The code generation template in file
modules\adb-codegen\src\org\apache\axis2\schema\template\CADBBeanTemplateSource.xsl
chooses the serializer and deserializer routines to call based on the native
datatype. As a result the generated code contains calls to
axutil_date_time_serialize_date_time for xsd:date and xsd:time types, where
axutil_date_time_serialize_date and axutil_date_time_serialize_time are
appropriate.
Same applies for the axutil_date_time_deserialize_... calls.
Potential fixes:
Add typedef names for axis2_date_t and axis2_time_t, as aliases for struct
axis2_date_time_t, and change the CTypeMap to use them.
Modify the template to consider the schema type names when generating
(de)serializers for axis2_date_time_t elements. I don't know enough to know
whether this information is available to the template.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]