JAXB subclass and attribute problem
843834Oct 30 2007 — edited May 23 2008My schema has a complex type and an sub-complextype. Both of these types have elements of type string.
The classes that are generated look fine, they both have the attributes created as JAXBElement<String>.
Over the wire, the xml nodes for the attributes are not set correctly
For instance...here is one of the attributes
@XmlElementRef(name = "Name", namespace = "http://schemas.xxxxxx", type = JAXBElement.class)
protected JAXBElement<String> name;
On the wire it should look like
<nsXX:Name>YYY</Name>
instead it looks like
<nsXX:string>YYY</string>