Hi,

I have a simple jaxb element with the following field:

 @XmlElement(name = "DELETE")
 @XmlJavaTypeAdapter(BooleanIntAdapter.class)
 private Boolean delete;

The BooleanIntAdapter is a simple XmlAdapter that converts from Boolean to
0,1 (and null).

Before using CXF when marshalling this object i would get
<DELETE>1</DELETE>
which is the desired xml.

After adding CXF to my project the object is marshalled like this:
<DELETE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xs="
http://www.w3.org/2001/XMLSchema"; xsi:type="xs:boolean">true</DELETE>

After a little debugging I saw that the marshal method of the xmladapter is
not even being called...

The CXF objects used by a web service are not related at all to these jaxb
objects.

How can achieve the desired xml?

Reply via email to