axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Ludwig (JIRA)" <>
Subject [jira] Created: (AXIS2-3390) Invalid xs:date serialization (WSDL2Java generated code)
Date Fri, 07 Dec 2007 10:10:44 GMT
Invalid xs:date serialization (WSDL2Java generated code)

                 Key: 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

Our WSDL contains

  <xs:simpleType name="fuzzyDateType">
    <xs:union memberTypes="xs:date xs:dateTime xs:gYear xs:gYearMonth">

The Eclipse Axis2 Code Generator Wizard generated an ADB Binding that accepts, among others, 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):

    <notBefore xmlns:s1="" xmlns:xsi=""
xsi:type="s1:date">Wed Feb 01 08:00:00 CET 2006</notBefore>
    <notAfter xmlns:s2="" xmlns:xsi=""
xsi:type="s2:date">Thu Dec 06 13:19:49 CET 2007</notAfter>

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:
For additional commands, e-mail:

View raw message