Package org.mule.soap.api.client
Interface SoapClient
- All Known Implementing Classes:
AbstractSoapCxfClient,DefaultSoapCxfClient,SoapMtomCxfClient
public interface SoapClient
Contract for clients that consumes SOAP Web Services.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionconsume(SoapRequest request, TransportDispatcher dispatcher) Sends aSoapRequestblocking the current thread until a response is available or the request times out.default StringcreateSequence(CreateSequenceRequest request, TransportDispatcher dispatcher) Creates a Reliable Message sequencevoiddestroy()Shuts down the client and all resources that is holding.default SoapResponseparseResponse(String operation, TransportResponse response) Generates aSoapResponsefrom aTransportResponsedefault voidterminateSequence(TerminateSequenceRequest request, TransportDispatcher dispatcher) Terminates a Reliable Message sequence
-
Method Details
-
consume
SoapResponse consume(SoapRequest request, TransportDispatcher dispatcher) throws BadRequestException, BadResponseException Sends aSoapRequestblocking the current thread until a response is available or the request times out.- Parameters:
request- aSoapRequestinstance.dispatcher- aTransportDispatcherthat will be used to dispatch theSoapRequest- Returns:
- a
SoapResponseinstance with the XML content and Headers if any. - Throws:
BadRequestExceptionBadResponseException
-
parseResponse
default SoapResponse parseResponse(String operation, TransportResponse response) throws BadResponseException Generates aSoapResponsefrom aTransportResponse- Parameters:
operation- The name of the operation related to the responseresponse- aTransportResponseinstance- Returns:
- a
SoapResponseinstance with the XML content and Headers if any. - Throws:
BadResponseException- Since:
- 1.5
-
destroy
void destroy()Shuts down the client and all resources that is holding. -
createSequence
Creates a Reliable Message sequence- Parameters:
request- aCreateSequenceRequestinstance.dispatcher- aTransportDispatcherthat will be used to dispatch the RM protocol message- Returns:
- a
Stringrepresenting a reliable message sequence identifier - Since:
- 1.6
-
terminateSequence
Terminates a Reliable Message sequence- Parameters:
request- aTerminateSequenceRequestinstance.dispatcher- aTransportDispatcherthat will be used to dispatch the RM protocol message- Since:
- 1.6
-