[ https://issues.apache.org/jira/browse/AXIS2-2929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721907#action_12721907 ]
John Peregrine commented on AXIS2-2929: --------------------------------------- Has there seriously been no progress on this issue? Axis 1.5 is now out, and the issue STILL is not fixed, or there simply is no good documentation ANYWHERE stating how this issue has been fixed. I am trying to generate extremely simple enum values (I even tried creating the enum as 'implements java.io.Serializable', to no avail.) When googling, I find nothing on this issue either except unanswered message threads asking the same thing, which tells me that Axis2 has not only been lacking even the simplest of Java constructs, but no progress has even been made. Hey Java, you suck. I'm hanging out with .NET (my long-time best friend) from now on. > Java2WSDL does not correctly create enumerations from Enum > ---------------------------------------------------------- > > Key: AXIS2-2929 > URL: https://issues.apache.org/jira/browse/AXIS2-2929 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.2 > Environment: Ubuntu 7.04 > Tomcat 6.0.13 > Java 1.5 > Reporter: Sebastian Niezgoda > Assignee: Deepal Jayasinghe > > Hello, > I have a bunch of Java 1.5 Enum objects, which look similar to: > public enum MyEnum { > VAL, > ANOTHERVAL > public String value() { > return name(); > } > > public static MyEnum fromValue(String v) { > return valueOf(v); > } > } > I run Java2WSDL and created is a complex type: > <xs:complexType name="MyEnum"> > <xs:complexContent> > <xs:extension base="xs:Enum"> > <xs:sequence> > <xs:element > minOccurs="0" name="VAL" nillable="true" type="ax22:MyEnum"/> > <xs:element > minOccurs="0" name="ANOTHERVAL" nillable="true" type="ax22:MyEnum"/> > </xs:sequence> > </xs:extension> > </xs:complexContent> > </xs:complexType> > However, I believe the correct way to create the enumerations should be: > <simpleType name="MyEnum"> > <restriction base="token"> > <enumeration value="VAL"/> > <enumeration value="ANOTHERVAL"/> > </restriction> > </simpleType> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.