Class RequestCreators
java.lang.Object
org.springframework.ws.test.server.RequestCreators
Factory methods for
RequestCreator
classes. Typically used to provide input for
MockWebServiceClient.sendRequest(RequestCreator)
.- Since:
- 2.0
- Author:
- Arjen Poutsma
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequestCreator
withPayload
(Source payload) Create a request with the givenSource
XML as payload.static RequestCreator
withPayload
(org.springframework.core.io.Resource payload) Create a request with the givenResource
XML as payload.static RequestCreator
withSoapEnvelope
(Source soapEnvelope) Create a request with the givenSource
XML as SOAP envelope.static RequestCreator
withSoapEnvelope
(org.springframework.core.io.Resource soapEnvelope) Create a request with the givenResource
XML as SOAP envelope.
-
Method Details
-
withPayload
Create a request with the givenSource
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 givenResource
XML as payload.- Parameters:
payload
- the request payload- Returns:
- the request creator
- Throws:
IOException
-
withSoapEnvelope
Create a request with the givenSource
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 givenResource
XML as SOAP envelope.- Parameters:
soapEnvelope
- the request SOAP envelope- Returns:
- the request creator
- Throws:
IOException
- Since:
- 2.1.1
-