Class SoapResponseMessageCallback
java.lang.Object
org.citrusframework.ws.message.callback.SoapResponseMessageCallback
- All Implemented Interfaces:
org.springframework.ws.client.core.WebServiceMessageCallback
public class SoapResponseMessageCallback
extends Object
implements org.springframework.ws.client.core.WebServiceMessageCallback
Receiver callback invoked by framework on response message. Callback fills an internal message representation with
the response information for further message processing.
-
Constructor Summary
ConstructorsConstructorDescriptionSoapResponseMessageCallback(WebServiceEndpointConfiguration endpointConfiguration, TestContext context) Constructor using endpoint configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoWithMessage(org.springframework.ws.WebServiceMessage responseMessage) Callback method called with actual web service response message.Gets the constructed Spring Integration response message object.
-
Constructor Details
-
SoapResponseMessageCallback
public SoapResponseMessageCallback(WebServiceEndpointConfiguration endpointConfiguration, TestContext context) Constructor using endpoint configuration.- Parameters:
endpointConfiguration-context-
-
-
Method Details
-
doWithMessage
public void doWithMessage(org.springframework.ws.WebServiceMessage responseMessage) throws IOException, TransformerException Callback method called with actual web service response message. Method constructs a Spring Integration message from this web service message for further processing.- Specified by:
doWithMessagein interfaceorg.springframework.ws.client.core.WebServiceMessageCallback- Throws:
IOExceptionTransformerException
-
getResponse
Gets the constructed Spring Integration response message object.- Returns:
- the response message.
-