axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Radim Kolarik" <radim.l...@googlemail.com>
Subject Java 5 enum type and WSDL
Date Wed, 05 Mar 2008 16:55:23 GMT
Hi,

I tried to use java2wsdl tool to generate a WSDL file for my service,
which uses Java 5 enum type on the interface:

public enum TestEnum {
	ONE,
	TWO,
	THREE
}

It generates the type as:

<xs:complexType name="TestEnum">
  <xs:complexContent>
    <xs:extension base="xs:Enum">
      <xs:sequence/>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>

which is wrong because it extends xs:Enum where xs is
http://www.w3.org/2001/XMLSchema namespace, which doesn't define an
Enum type. Also, the individual supported values ONE, TWO and THREE
are not listed.

Is Java 5 enum supported by Axis2? If not, when is it planned to be
supported? BTW, I used the latest nightly build of Axis2 to test this.

Thanks a lot,
Radim

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message