I use @XmlEnum and @XmlEnumValue for mapping enum to XML representation (WSDL file). I need to omit one of the enumeration values. So it won't be a part of the WSDL file.
I need to omit enum value NONE. Tried this but doesn't work.
@XmlEnum
public enum Title { 
   @XmlEnumValue("mrs") MRS,
   @XmlEnumValue("mrs") MR,
   NONE;
   ..
}
This is the generated WSDL file.
<xs:simpleType name="title">
  <xs:restriction base="xs:string">
    <xs:enumeration value="mrs"/>    
    <xs:enumeration value="mr"/>
    <xs:enumeration value="NONE"/> <!-- I need to get rid of this enum value -->
  </xs:restriction>
</xs:simpleType>