<bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping" />
<bean class="org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter">
<property name="marshaller" ref="marshaller"/>
<property name="unmarshaller" ref="marshaller"/>
</bean>
It is amazingly simple with spring integration to use the endpoint annotations.
@Endpoint
public class MyExposedEndpoint {
@PayloadRoot(localPart="MyEndpointMethod", namespace="http://www.company.com/mynamespace")
public void processMyMethod(MyRequest myRequest) {
// Insert code to process the request here.
}
}
That's really all there is to it. The web.xml is set up the same as the first blog in this series.
1 comment:
Hi Jeff,
Is it possible to use PayloadRootAnnotationMethodEndpointMapping with ws:inbound-gateway? My full requirement is explained here: http://forum.springsource.org/showthread.php?128956-Transforming-spring-ws-implementation-to-spring-integration-ws-implementation
Could you please share your experience?
Post a Comment