Class XmlRootElementEndpointMapping

All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, EndpointMapping

public class XmlRootElementEndpointMapping extends AbstractAnnotationMethodEndpointMapping<QName>
Implementation of the EndpointMapping interface that uses the JAXB2 XmlRootElement annotation to map methods to request payload root elements.

Endpoints typically have the following form:

@Endpoint
public class MyEndpoint{
  public void doSomethingWithRequest(@RequestBody MyRootElement rootElement) {
         ...
  }
}
where MyRootElement is annotated with @XmlRootElement:
@XmlRootElement(name = "myRoot", namespace = "http://springframework.org/spring-ws")
public class MyRootElement {
 ...
}
Since:
2.0