Class RequestCreators

java.lang.Object
org.springframework.ws.test.server.RequestCreators

public abstract class RequestCreators extends Object
Factory methods for RequestCreator classes. Typically used to provide input for MockWebServiceClient.sendRequest(RequestCreator).
Since:
2.0
Author:
Arjen Poutsma
  • Method Details

    • withPayload

      public static RequestCreator withPayload(Source payload)
      Create a request with the given Source XML as payload.
      Parameters:
      payload - the request payload
      Returns:
      the request creator
    • withPayload

      public static RequestCreator withPayload(org.springframework.core.io.Resource payload) throws IOException
      Create a request with the given Resource XML as payload.
      Parameters:
      payload - the request payload
      Returns:
      the request creator
      Throws:
      IOException
    • withSoapEnvelope

      public static RequestCreator withSoapEnvelope(Source soapEnvelope)
      Create a request with the given Source XML as SOAP envelope.
      Parameters:
      soapEnvelope - the request SOAP envelope
      Returns:
      the request creator
      Since:
      2.1.1
    • withSoapEnvelope

      public static RequestCreator withSoapEnvelope(org.springframework.core.io.Resource soapEnvelope) throws IOException
      Create a request with the given Resource XML as SOAP envelope.
      Parameters:
      soapEnvelope - the request SOAP envelope
      Returns:
      the request creator
      Throws:
      IOException
      Since:
      2.1.1