public interface SOAPProvider
Modifier and Type | Method and Description |
---|---|
MessageFactory |
getMessageFactory()
Provides access to an appropriate SAAJ MessageFactory.
|
SOAPFactory |
getSOAPFactory()
Provides access to the appropriate SAAJ SOAPFactory.
|
OutgoingSOAPRequestActivity |
sendRequest(URL requestURL,
SOAPMessage requestMessage)
Asynchronously send a SOAP request.
|
OutgoingSOAPRequestActivity |
sendRequest(URL requestURL,
SOAPMessage requestMessage,
boolean endOnResponse)
Asynchronously send a SOAP request.
|
SOAPResponse |
sendSyncRequest(URL requestURL,
SOAPMessage requestMessage)
Synchronously send a SOAP request, blocking until the response
arrives.
|
MessageFactory getMessageFactory()
SOAPFactory getSOAPFactory()
OutgoingSOAPRequestActivity sendRequest(URL requestURL, SOAPMessage requestMessage) throws IOException
A new OutgoingSOAPRequestActivity
will be created
for this activity. When a response is received (or a timeout
or error occurs) a SOAPResponse
event is fired
on the new activity; a SBB should be attached to the activity
to handle this response.
The new activity ends automatically after. a response is received.
requestURL
- the URL to send torequestMessage
- the message to sendOutgoingSOAPRequestActivity
activity objectIOException
- if unable to send the requestOutgoingSOAPRequestActivity sendRequest(URL requestURL, SOAPMessage requestMessage, boolean endOnResponse) throws IOException
A new OutgoingSOAPRequestActivity
will be created
for this activity. When a response is received (or a timeout
or error occurs) a SOAPResponse
event is fired
on the new activity; a SBB should be attached to the activity
to handle this response.
If endsOnResponse
is true
, the new
activity ends automatically after a response is received.
Otherwise, the activity remains alive until
OutgoingSOAPRequestActivity.endActivity()
is called to
explicitly end the activity.
requestURL
- the URL to send torequestMessage
- the message to sendendOnResponse
- true
if the request activity
should be automatically ended when a response is receivedOutgoingSOAPRequestActivity
activity objectIOException
- if unable to send the requestSOAPResponse sendSyncRequest(URL requestURL, SOAPMessage requestMessage) throws IOException
requestURL
- the URL to send to.requestMessage
- the message to send.IOException
- if unable to send the request