[ http://issues.apache.org/jira/browse/AXIS-2010?page=comments#action_66345 ] Yves Langisch commented on AXIS-2010: -------------------------------------
With xs:integer as restriction base the bug doesn't occur. e.g. <xs:simpleType name="MyDerivedFromShortType"> <xs:restriction base="xs:integer"> <xs:minInclusive value="1"/> <xs:maxInclusive value="100"/> </xs:restriction> </xs:simpleType> > Wrong xsi:type handling with derived types > ------------------------------------------ > > Key: AXIS-2010 > URL: http://issues.apache.org/jira/browse/AXIS-2010 > Project: Axis > Type: Bug > Components: Serialization/Deserialization > Versions: 1.2 > Reporter: Yves Langisch > Priority: Critical > > Given a type in a wsdl such as: > <xs:simpleType name="MyDerivedFromShortType"> > <xs:restriction base="xs:short"> > <xs:minInclusive value="1"/> > <xs:maxInclusive value="100"/> > </xs:restriction> > </xs:simpleType> > Axis generates following on the wire: > ... > <ns2:MyDerivedFromShort xsi:type="xsd:short">99</ns2:MyDerivedFromShort> > ... > This is incorrect, as MyDerivedFromShort is derived from xs:short but not > xs:short itself. To be sure I let Xerces validating the document. This gives > following error: > Validation error: LineNumber: 48 ColumnNumber: 2883 Message: > cvc-elt.4.3: Type 'xsd:short' is not validly derived from the type > definition, 'MyDerivedFromShortType', of element 'ns2:MyDerivedFromShort'.: > Axis 1.2RC3 didn't show this behaviour. -- 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