You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by remo408 <pr...@gmail.com> on 2013/05/29 17:52:16 UTC

Enum Representation in WSDL

An Enum like below:

public enum CustomerType {
    PRIVATE, BUSINESS
}
Can be represented in WSDL as:

<xs:simpleType name="customerType">
    <xs:restriction base="xs:string">
        <xs:enumeration value="PRIVATE"/>
        <xs:enumeration value="BUSINESS"/>
    </xs:restriction>
</xs:simpleType>
How can we represent enum like below in WSDL:

public enum CustomerType {
        PRIVATE{public BigInteger getNcid() {
                return new BigInteger("1");
}, 
BUSINESS{public BigInteger getNcid() {
                return new BigInteger("2");
}

public abstract BigInteger getNcid();
    }



--
View this message in context: http://cxf.547215.n5.nabble.com/Enum-Representation-in-WSDL-tp5728492.html
Sent from the cxf-user mailing list archive at Nabble.com.