On Wednesday, September 21, 2011 4:19:36 PM Jeremy Robertson wrote:
> 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?

I really have no idea.   You could try on the JAXB list:

[email protected]

as this really is more of a JAXB question.  One of the JAXB experts there may 
be able to provide some ideas.


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to