I have a DTO which cannot be modified, but it is required for use on a new endpoint. The problem is that the RootElement Name has to be changed, is there a way to to this on a specific endpoint ?
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlRootElement(name = "wccevent")
public class SimpleWCCEvent {
..
}
On my new endpoint I need to change the root name from wccevent
to apiresponse
, is this possible ?
Something like
@GET
...
@XmlFeatures({overrideRootName = "apiresponse"})
public Response newEndpoint(){
...
}