|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebServiceOperations
Specifies a basic set of Web service operations. Implemented by WebServiceTemplate
. Not often used directly,
but a useful option to enhance testability, as it can easily be mocked or stubbed.
WebServiceTemplate
Method Summary | ||
---|---|---|
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. |
|
|
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. |
|
|
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 . |
|
|
sendSourceAndReceive(Source requestPayload,
SourceExtractor<T> responseExtractor)
Sends a web service message that contains the given payload, reading the result with a SourceExtractor . |
|
|
sendSourceAndReceive(Source requestPayload,
WebServiceMessageCallback requestCallback,
SourceExtractor<T> responseExtractor)
Sends a web service message that contains the given payload, reading the result with a SourceExtractor . |
|
|
sendSourceAndReceive(String uri,
Source requestPayload,
SourceExtractor<T> responseExtractor)
Sends a web service message that contains the given payload, reading the result with a SourceExtractor . |
|
|
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. |
Method Detail |
---|
<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 results
WebServiceMessageExtractor
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 results
WebServiceMessageExtractor
WebServiceClientException
- if there is a problem sending or receiving the messageboolean sendAndReceive(WebServiceMessageCallback requestCallback, WebServiceMessageCallback responseCallback) throws WebServiceClientException
requestCallback
- the callback to be used for manipulating the request messageresponseCallback
- the callback to be used for manipulating the response message
true
if a response was received; false
otherwise
WebServiceClientException
- 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 message
true
if a response was received; false
otherwise
WebServiceClientException
- 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 payload
null
if no response is given
org.springframework.oxm.XmlMappingException
- if there is a problem marshalling or unmarshalling
WebServiceClientException
- 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 payload
null
if no response is given
org.springframework.oxm.XmlMappingException
- if there is a problem marshalling or unmarshalling
WebServiceClientException
- 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 given
org.springframework.oxm.XmlMappingException
- if there is a problem marshalling or unmarshalling
WebServiceClientException
- 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 given
org.springframework.oxm.XmlMappingException
- if there is a problem marshalling or unmarshalling
WebServiceClientException
- 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 results
SourceExtractor
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 results
SourceExtractor
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 results
SourceExtractor
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 results
SourceExtractor
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 to
true
if a response was received; false
otherwise
WebServiceClientException
- 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 to
true
if a response was received; false
otherwise
WebServiceClientException
- 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 to
true
if a response was received; false
otherwise
WebServiceClientException
- 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 to
true
if a response was received; false
otherwise
WebServiceClientException
- if there is a problem sending or receiving the message
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |