You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Yves Langisch (JIRA)" <ax...@ws.apache.org> on 2005/06/13 11:54:46 UTC

[jira] Commented: (AXIS-2010) Wrong xsi:type handling with derived types

    [ http://issues.apache.org/jira/browse/AXIS-2010?page=comments#action_12313435 ] 

Yves Langisch commented on AXIS-2010:
-------------------------------------

Seems to be resolved with latest CVS

> Wrong xsi:type handling with derived types
> ------------------------------------------
>
>          Key: AXIS-2010
>          URL: http://issues.apache.org/jira/browse/AXIS-2010
>      Project: Apache 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