I am using JAX-WS 2.1 to generate artifacts from xsd file for Web services.
Here the XSD definition of the problemtic artifact:
<xs:simpleType name='Example'>
<xs:annotation>
<xs:documentation>Example</xs:documentation>
</xs:annotation>
<xs:restriction base='xs:string'>
<xs:minLength value='0'/>
<xs:maxLength value='1'/>
</xs:restriction>
</xs:simpleType>
Jax WS does not generate artifact Example. I do not see class with name Example.
But when I am adding enum to XSD definition then JAX-WS succes generate it:
<xs:simpleType name='Example'>
<xs:annotation>
<xs:documentation>Example</xs:documentation>
</xs:annotation>
<xs:restriction base='xs:string'>
<xs:minLength value='0'/>
<xs:maxLength value='1'/>
<xs:enumeration value='A'/>
</xs:restriction>
</xs:simpleType>
If somebody know what the problem please help