I have an enum that is using an XmlJavaTypeAdapter to adjust the value in the 
service.

Example:

@XmlJavaTypeAdapter(Something.class)
public enum MyEnum {
                ONE("value.one")
TWO("value.two")

String value;
...
}

So I want the service to use "value.one" instead of ONE. Using the adapter, 
this works just fine in the service. However, the generated WSDL still uses the 
enum value "ONE" instead of "value.one"

I know I can use @XmlEnumValue to get around this, but I'd rather not have to 
duplicate the String value. I do need to use it in the service, and the enum I 
am doing this for is pretty large...
Does anyone know of a good way to get around this?

Thanks,
Jeremy


 NOTICE: This email message is for the sole use of the intended recipient(s) 
and may contain confidential and privileged information. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email and destroy all 
copies of the original message.


Reply via email to