Hi,

 

I am trying to generate a wsdl file (with java2wsdl) that contains an
enum definition such as the following:

 
<xs:element name="stae">
  <xs:simpleType>
<xs:restriction base="xs:string">
  <xs:enumeration value="start"/>
  <xs:enumeration value="inprogress"/>
  <xs:enumeration value="abort"/>
  <xs:enumeration value="complete"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

 

I tried the type safe enum pattern as well as the Java5 Enum but had no
luck so far. Can someone point me to a relevant document or some sample
code please? Thanks! 

 

I am using AXIS2-1.3 with Java5.

 

Ken

Reply via email to