axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Hargreaves <>
Subject [Axis1.4] complexType of simpleContent with extension attribute of type float - wsdl2java compile error.
Date Thu, 17 Jan 2008 17:14:59 GMT
Please could an Axis developer confirm and then register this bug in Jira for 
me - I couldn't find a known bug that seemed to be the same.

Axis 1.4 - WSDL2Java generates a source file, from the 
following schema, with compile errors (the float member and supporting 
methods are not created).

 <xs:complexType name="DistanceType">
   <xs:extension base="DistanceValueType">
    <xs:attribute name="Unit" type="DistanceUnitType" use="required"/>
 <xs:simpleType name="DistanceValueType">
  <xs:restriction base="xs:float">
   <xs:minInclusive value="0"/><xs:maxInclusive value="255"/>

 <xs:simpleType name="DistanceUnitType">
  <xs:restriction base="xs:string">
   <xs:enumeration value="Km"/>
   <xs:enumeration value="Mi"/>
On the other hand Axis 1.2.1 - WSDL2Java creates the 
If I replace generated by Axis 1.4 with the one generated by 
Axis1.2.1 then the 1.4 generated code compiles OK.
This wsdl to generate this error can be found at:

The two files are attached.

Many thanks,

View raw message