[
https://issues.apache.org/jira/browse/AXIS2-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Amila Chinthaka Suriarachchi resolved AXIS2-3390.
-------------------------------------------------
Resolution: Fixed
Assignee: Amila Chinthaka Suriarachchi
fixed the issue
> Invalid xs:date serialization (WSDL2Java generated code)
> --------------------------------------------------------
>
> Key: AXIS2-3390
> URL: https://issues.apache.org/jira/browse/AXIS2-3390
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb, wsdl
> Affects Versions: 1.3
> Environment: Eclipse (Europa) with Axis2 Code generated by the Code
> Generator Wizard (on MacOS X and Linux)
> Reporter: Christoph Ludwig
> Assignee: Amila Chinthaka Suriarachchi
>
> Our WSDL contains
> <xs:simpleType name="fuzzyDateType">
> <xs:union memberTypes="xs:date xs:dateTime xs:gYear xs:gYearMonth">
> </xs:union>
> </xs:simpleType>
> The Eclipse Axis2 Code Generator Wizard generated an ADB Binding that
> accepts, among others, java.util.date and java.util.Calendar for the object
> in fuzzyDateType. However, the serialize function simply calls toString() on
> these objects - whence the date in the generated SOAP is formatted as
> localized date or as some debug representation of Calendar, respectively,
> instead of ISO 8601 as required by XML Schema. For example, the generated
> SOAP contains (with notBefore and notAfter of Type FuzzyDateType):
> <date>
> <notBefore xmlns:s1="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s1:date">Wed
> Feb 01 08:00:00 CET 2006</notBefore>
> <notAfter xmlns:s2="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s2:date">Thu
> Dec 06 13:19:49 CET 2007</notAfter>
> </date>
--
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]