Hi folks,
 
I am using a nightly build dated the 25th of April 2008.  
 
I created a POJO with one method and with one parameter.  The parameter
is a class with a couple of variables in it of which one of the
variables is of the type DataEncodingType which is a class as specified
below.
 
When Axis2 generates the WSDL the complexType is generated as below:
 
<xs:complexType name="DataEncodingType">
  <xs:complexContent>
    <xs:extension base="xs:Enum">
      <xs:sequence/>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>
 
With no mention of the enum values.  This used to work in a previous
nightly build about 2 weeks ago, but when I used the 25th April nightly
build, the enum is gone.
 
 
package axis2.testproject.jaxb;
 
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
 
@XmlType(name = "DataEncodingType")
@XmlEnum
public enum DataEncodingType {
 
    RAW("RAW"),
    HEX("HEX"),
    @XmlEnumValue("BASE64")
    BASE_64("BASE64");
    private final String value;
 
    DataEncodingType(String v) {
        value = v;
    }
 
    public String value() {
        return value;
    }
 
    public static DataEncodingType fromValue(String v) {
        for (DataEncodingType c: DataEncodingType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
 
}

Reply via email to