public interface WebServiceOperations
WebServiceTemplate
. Not often used directly,
but a useful option to enhance testability, as it can easily be mocked or stubbed.WebServiceTemplate
Modifier and Type | Method and Description |
---|---|
Object |
marshalSendAndReceive(Object requestPayload)
Sends a web service message that contains the given payload, marshalled by the configured
Marshaller . |
Object |
marshalSendAndReceive(Object requestPayload,
WebServiceMessageCallback requestCallback)
Sends a web service message that contains the given payload, marshalled by the configured
Marshaller . |
Object |
marshalSendAndReceive(String uri,
Object requestPayload)
Sends a web service message that contains the given payload, marshalled by the configured
Marshaller . |
Object |
marshalSendAndReceive(String uri,
Object requestPayload,
WebServiceMessageCallback requestCallback)
Sends a web service message that contains the given payload, marshalled by the configured
Marshaller . |
boolean |
sendAndReceive(String uri,
WebServiceMessageCallback requestCallback,
WebServiceMessageCallback responseCallback)
Sends a web service message that can be manipulated with the given request callback, handling the response with a
response callback.
|
<T> T |
sendAndReceive(String uri,
WebServiceMessageCallback requestCallback,
WebServiceMessageExtractor<T> responseExtractor)
Sends a web service message that can be manipulated with the given callback, reading the result with a
WebServiceMessageExtractor . |
boolean |
sendAndReceive(WebServiceMessageCallback requestCallback,
WebServiceMessageCallback responseCallback)
Sends a web service message that can be manipulated with the given request callback, handling the response with a
response callback.
|
<T> T |
sendAndReceive(WebServiceMessageCallback requestCallback,
WebServiceMessageExtractor<T> responseExtractor)
Sends a web service message that can be manipulated with the given callback, reading the result with a
WebServiceMessageExtractor . |
<T> T |
sendSourceAndReceive(Source requestPayload,
SourceExtractor<T> responseExtractor)
Sends a web service message that contains the given payload, reading the result with a
SourceExtractor . |
<T> T |
sendSourceAndReceive(Source requestPayload,
WebServiceMessageCallback requestCallback,
SourceExtractor<T> responseExtractor)
Sends a web service message that contains the given payload, reading the result with a
SourceExtractor . |
<T> T |
sendSourceAndReceive(String uri,
Source requestPayload,
SourceExtractor<T> responseExtractor)
Sends a web service message that contains the given payload, reading the result with a
SourceExtractor . |
<T> T |
sendSourceAndReceive(String uri,
Source requestPayload,
WebServiceMessageCallback requestCallback,
SourceExtractor<T> responseExtractor)
Sends a web service message that contains the given payload, reading the result with a
SourceExtractor . |
boolean |
sendSourceAndReceiveToResult(Source requestPayload,
Result responseResult)
Sends a web service message that contains the given payload.
|
boolean |
sendSourceAndReceiveToResult(Source requestPayload,
WebServiceMessageCallback requestCallback,
Result responseResult)
Sends a web service message that contains the given payload.
|
boolean |
sendSourceAndReceiveToResult(String uri,
Source requestPayload,
Result responseResult)
Sends a web service message that contains the given payload.
|
boolean |
sendSourceAndReceiveToResult(String uri,
Source requestPayload,
WebServiceMessageCallback requestCallback,
Result responseResult)
Sends a web service message that contains the given payload.
|
<T> T sendAndReceive(WebServiceMessageCallback requestCallback, WebServiceMessageExtractor<T> responseExtractor) throws WebServiceClientException
WebServiceMessageExtractor
.
This will only work with a default uri specified!
requestCallback
- the requestCallback to be used for manipulating the request messageresponseExtractor
- object that will extract resultsWebServiceMessageExtractor
WebServiceClientException
- if there is a problem sending or receiving the message<T> T sendAndReceive(String uri, WebServiceMessageCallback requestCallback, WebServiceMessageExtractor<T> responseExtractor) throws WebServiceClientException
WebServiceMessageExtractor
.uri
- the URI to send the message torequestCallback
- the requestCallback to be used for manipulating the request messageresponseExtractor
- object that will extract resultsWebServiceMessageExtractor
WebServiceClientException
- if there is a problem sending or receiving the messageboolean sendAndReceive(WebServiceMessageCallback requestCallback, WebServiceMessageCallback responseCallback) throws WebServiceClientException
This will only work with a default uri specified!
requestCallback
- the callback to be used for manipulating the request messageresponseCallback
- the callback to be used for manipulating the response messagetrue
if a response was received; false
otherwiseWebServiceClientException
- if there is a problem sending or receiving the messageboolean sendAndReceive(String uri, WebServiceMessageCallback requestCallback, WebServiceMessageCallback responseCallback) throws WebServiceClientException
uri
- the URI to send the message torequestCallback
- the callback to be used for manipulating the request messageresponseCallback
- the callback to be used for manipulating the response messagetrue
if a response was received; false
otherwiseWebServiceClientException
- if there is a problem sending or receiving the messageObject marshalSendAndReceive(Object requestPayload) throws org.springframework.oxm.XmlMappingException, WebServiceClientException
Marshaller
. Returns the unmarshalled payload of the response message, if any.
This will only work with a default uri specified!
requestPayload
- the object to marshal into the request message payloadnull
if no response is givenorg.springframework.oxm.XmlMappingException
- if there is a problem marshalling or unmarshallingWebServiceClientException
- if there is a problem sending or receiving the messageWebServiceTemplate.setMarshaller(org.springframework.oxm.Marshaller)
,
WebServiceTemplate.setUnmarshaller(org.springframework.oxm.Unmarshaller)
Object marshalSendAndReceive(String uri, Object requestPayload) throws org.springframework.oxm.XmlMappingException, WebServiceClientException
Marshaller
. Returns the unmarshalled payload of the response message, if any.uri
- the URI to send the message torequestPayload
- the object to marshal into the request message payloadnull
if no response is givenorg.springframework.oxm.XmlMappingException
- if there is a problem marshalling or unmarshallingWebServiceClientException
- if there is a problem sending or receiving the messageWebServiceTemplate.setMarshaller(org.springframework.oxm.Marshaller)
,
WebServiceTemplate.setUnmarshaller(org.springframework.oxm.Unmarshaller)
Object marshalSendAndReceive(Object requestPayload, WebServiceMessageCallback requestCallback) throws org.springframework.oxm.XmlMappingException, WebServiceClientException
Marshaller
. Returns the unmarshalled payload of the response message, if any. The given callback
allows changing of the request message after the payload has been marshalled to it.
This will only work with a default uri specified!
requestPayload
- the object to marshal into the request message payloadrequestCallback
- callback to change message, can be null
null
if no response is givenorg.springframework.oxm.XmlMappingException
- if there is a problem marshalling or unmarshallingWebServiceClientException
- if there is a problem sending or receiving the messageWebServiceTemplate.setMarshaller(org.springframework.oxm.Marshaller)
,
WebServiceTemplate.setUnmarshaller(org.springframework.oxm.Unmarshaller)
Object marshalSendAndReceive(String uri, Object requestPayload, WebServiceMessageCallback requestCallback) throws org.springframework.oxm.XmlMappingException, WebServiceClientException
Marshaller
. Returns the unmarshalled payload of the response message, if any. The given callback
allows changing of the request message after the payload has been marshalled to it.uri
- the URI to send the message torequestPayload
- the object to marshal into the request message payloadrequestCallback
- callback to change message, can be null
null
if no response is givenorg.springframework.oxm.XmlMappingException
- if there is a problem marshalling or unmarshallingWebServiceClientException
- if there is a problem sending or receiving the messageWebServiceTemplate.setMarshaller(org.springframework.oxm.Marshaller)
,
WebServiceTemplate.setUnmarshaller(org.springframework.oxm.Unmarshaller)
<T> T sendSourceAndReceive(Source requestPayload, SourceExtractor<T> responseExtractor) throws WebServiceClientException
SourceExtractor
.
This will only work with a default uri specified!
requestPayload
- the payload of the request messageresponseExtractor
- object that will extract resultsSourceExtractor
WebServiceClientException
- if there is a problem sending or receiving the message<T> T sendSourceAndReceive(String uri, Source requestPayload, SourceExtractor<T> responseExtractor) throws WebServiceClientException
SourceExtractor
.uri
- the URI to send the message torequestPayload
- the payload of the request messageresponseExtractor
- object that will extract resultsSourceExtractor
WebServiceClientException
- if there is a problem sending or receiving the message<T> T sendSourceAndReceive(Source requestPayload, WebServiceMessageCallback requestCallback, SourceExtractor<T> responseExtractor) throws WebServiceClientException
SourceExtractor
.
The given callback allows changing of the request message after the payload has been written to it.
This will only work with a default uri specified!
requestPayload
- the payload of the request messagerequestCallback
- callback to change message, can be null
responseExtractor
- object that will extract resultsSourceExtractor
WebServiceClientException
- if there is a problem sending or receiving the message<T> T sendSourceAndReceive(String uri, Source requestPayload, WebServiceMessageCallback requestCallback, SourceExtractor<T> responseExtractor) throws WebServiceClientException
SourceExtractor
.
The given callback allows changing of the request message after the payload has been written to it.
uri
- the URI to send the message torequestPayload
- the payload of the request messagerequestCallback
- callback to change message, can be null
responseExtractor
- object that will extract resultsSourceExtractor
WebServiceClientException
- if there is a problem sending or receiving the messageboolean sendSourceAndReceiveToResult(Source requestPayload, Result responseResult) throws WebServiceClientException
Result
.
This will only work with a default uri specified!
requestPayload
- the payload of the request messageresponseResult
- the result to write the response payload totrue
if a response was received; false
otherwiseWebServiceClientException
- if there is a problem sending or receiving the messageboolean sendSourceAndReceiveToResult(String uri, Source requestPayload, Result responseResult) throws WebServiceClientException
Result
.uri
- the URI to send the message torequestPayload
- the payload of the request messageresponseResult
- the result to write the response payload totrue
if a response was received; false
otherwiseWebServiceClientException
- if there is a problem sending or receiving the messageboolean sendSourceAndReceiveToResult(Source requestPayload, WebServiceMessageCallback requestCallback, Result responseResult) throws WebServiceClientException
Result
.
The given callback allows changing of the request message after the payload has been written to it.
This will only work with a default uri specified!
requestPayload
- the payload of the request messagerequestCallback
- callback to change message, can be null
responseResult
- the result to write the response payload totrue
if a response was received; false
otherwiseWebServiceClientException
- if there is a problem sending or receiving the messageboolean sendSourceAndReceiveToResult(String uri, Source requestPayload, WebServiceMessageCallback requestCallback, Result responseResult) throws WebServiceClientException
Result
.
The given callback allows changing of the request message after the payload has been written to it.
uri
- the URI to send the message torequestPayload
- the payload of the request messagerequestCallback
- callback to change message, can be null
responseResult
- the result to write the response payload totrue
if a response was received; false
otherwiseWebServiceClientException
- if there is a problem sending or receiving the messageCopyright © 2020 Pivotal Software. All rights reserved.