You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ankit <an...@ltp.soft.net> on 2002/11/20 09:59:26 UTC

using restriction

My schema is like

 <simpleType name="Attribute">
    <restriction base="string">
      <length minLength="1"/>
    </restriction>
  </simpleType>
  <simpleType name="Class">
    <restriction base="Attribute">
      <enumeration value="First"/>
      <enumeration value="Business"/>
      <enumeration value="Coach"/>
    </restriction>
  </simpleType>
When I run WSDL2JAVA, I expected that it will genrate the code like
_class extends Attribute 
but it does not happen. I can not use extension instead of restriction
because extension does not support enumeration as content.
Any suggestions???????/
thanx in advance 
Ankit