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/27 08:07:47 UTC

how does axis handles restrictions

Hi,
Does anybody have any idea about how axis utility WSDL2JAVA  handles
Restrictions.

suppose I have schema like

<simpleType name="Attribute">
    <restriction base="string">
      <length minLength="1"/>
    </restriction>
  </simpleType>

<simpleType name="Test">
    <restriction base="Attribute">
      <enumeration value="First"/>
      <enumeration value="Business"/>
      <enumeration value="Coach"/>
    </restriction>
  </simpleType>

I expected that generated java code will have

"public class Test extends Attribute"

but it does not takes restriction into consideration. Is it a bug in
axis????

regards,
Ankit