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 RequestCreatorwithPayload(Source payload) Create a request with the givenSourceXML as payload.static RequestCreatorwithPayload(org.springframework.core.io.Resource payload) Create a request with the givenResourceXML as payload.static RequestCreatorwithSoapEnvelope(Source soapEnvelope) Create a request with the givenSourceXML as SOAP envelope.static RequestCreatorwithSoapEnvelope(org.springframework.core.io.Resource soapEnvelope) Create a request with the givenResourceXML as SOAP envelope.
-
Method Details
-
withPayload
Create a request with the givenSourceXML 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 givenResourceXML as payload.- Parameters:
payload- the request payload- Returns:
- the request creator
- Throws:
IOException
-
withSoapEnvelope
Create a request with the givenSourceXML 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 givenResourceXML as SOAP envelope.- Parameters:
soapEnvelope- the request SOAP envelope- Returns:
- the request creator
- Throws:
IOException- Since:
- 2.1.1
-