I am working on a web service using spring-mvc and Jaxb2Marshaller. I have two classes, both annotated with the same @XmlRootElement name
@XmlRootElement(name="request") class Foo extends AstractRequest { } @XmlRootElement(name="request") class Bar extends AbstractRequest ...