Search in sources :

Example 1 with WebServiceMessageReceiver

use of org.springframework.ws.transport.WebServiceMessageReceiver in project camel by apache.

the class InMemoryWebServiceMessageSender2 method decorateResponseReceiver.

public void decorateResponseReceiver() {
    final WebServiceMessageReceiver original = getWebServiceMessageReceiver();
    setWebServiceMessageReceiver(new WebServiceMessageReceiver() {

        @Override
        public void receive(MessageContext messageContext) throws Exception {
            decorator.receive(messageContext);
            original.receive(messageContext);
        }
    });
}
Also used : MessageContext(org.springframework.ws.context.MessageContext) WebServiceMessageReceiver(org.springframework.ws.transport.WebServiceMessageReceiver)

Aggregations

MessageContext (org.springframework.ws.context.MessageContext)1 WebServiceMessageReceiver (org.springframework.ws.transport.WebServiceMessageReceiver)1