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 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:
      doWithMessage in interface org.springframework.ws.client.core.WebServiceMessageCallback
      Throws:
      IOException
      TransformerException
    • getResponse

      public Message getResponse()
      Gets the constructed Spring Integration response message object.
      Returns:
      the response message.