I have a xsd document which has the following :
<xsd:complexType name="LayerRateType">
<xsd:annotation>
<xsd:documentation>
...
...
</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="tns:LayerRateEnumType">
<xsd:attribute name="extension" type="xsd:string" use="optional"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<!-- ===================== -->
<xsd:simpleType name="LayerRateEnumType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="VENDOR_EXT"/>
<xsd:enumeration value="MINOR_EXT"/>
....
</xsd:restriction>
</xsd:simpleType>
The problem is when i run wsdl2java it creates a class LayerRateType with 2
string fields : value and extension and the enumeration LayerRateEnumType is
not even created. Do we need to make any changes in the xsd to generate the
class?? Please help.
--
View this message in context:
http://www.nabble.com/CXF-%3A-wsdl2java-doesn%27t-generate-class-for-enum-type-tp22656275p22656275.html
Sent from the cxf-user mailing list archive at Nabble.com.