The WSDL view as shown below:
<xs:simpleType name="customerType"> <xs:restriction base="xs:string"> <xs:enumeration value="PRIVATE"/> <xs:enumeration value="BUSINESS"/> </xs:restriction> </xs:simpleType>
cited the code as shown below, cxf-codegen-plugin:
public enum CustomerType { PRIVATE, BUSINESS }
It can be represented in WSDL as:
As we can imagine the enumeration in WSDL so that cxf-codegen-plugin can generate code, as shown below:
public enum CustomerType { PRIVATE{public BigInteger getNcid() { return new BigInteger("1"); }, BUSINESS{public BigInteger getNcid() { return new BigInteger("2"); } public abstract BigInteger getNcid(); }
If we cannot create cxf-codegen, this is the best way to handle this case in java. I really appreciate your help.
source share