axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Kocher (JIRA)" <axis-...@ws.apache.org>
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
         URL: http://issues.apache.org/jira/browse/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
as

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

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

This is serialized as 

              <Restriction>
                  <LastName>World</LastName>
                  <firstName xsi:nil="true"/>
               </Restriction>

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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message