axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Kocher (JIRA)" <>
Subject [jira] Created: (AXIS-2099) Restriction on complex type not properly serialized
Date Fri, 01 Jul 2005 13:53:57 GMT
Restriction on complex type not properly serialized

         Key: AXIS-2099
     Project: Apache Axis
        Type: Bug
  Components: Basic Architecture  
    Versions: 1.2.1    
    Reporter: David Kocher
 Attachments: helloworld.tar.gz

Given a abstract complex type and a complex type with a restriction on this base type such

    <xs:complexType name="BaseType" abstract="true" >
            <xs:element name="FirstName" type="xs:string" minOccurs="0" nillable="false"/>
            <xs:element name="LastName" type="xs:string"/>

    <xs:complexType name="RestrictionType">
            <xs:restriction base="tns:BaseType">
                    <xs:element name="LastName" type="xs:string"/>

This is serialized as 

                  <firstName xsi:nil="true"/>

which is not correct because only the last name is allowed in <Restriction> and the
FirstName should be the first element and beginning with a capital anyway.

See the attached sample project.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message