Package org.somda.sdc.dpws.soap
Class RequestResponseClientImpl
java.lang.Object
org.somda.sdc.dpws.soap.RequestResponseClientImpl
- All Implemented Interfaces:
InterceptorHandler,RequestResponseClient
Default implementation of RequestResponseClient.
-
Method Summary
Modifier and TypeMethodDescriptionvoidregister(Interceptor interceptor) Registers a callback object.sendRequestResponse(SoapMessage request) Sends a SOAP request message and waits for the response to be received from the recipient.
-
Method Details
-
register
Description copied from interface:InterceptorHandlerRegisters a callback object.- Specified by:
registerin interfaceInterceptorHandler- Parameters:
interceptor- an object that possessesMessageInterceptorannotated methods.- See Also:
-
sendRequestResponse
public SoapMessage sendRequestResponse(SoapMessage request) throws SoapFaultException, MarshallingException, TransportException, InterceptorException Description copied from interface:RequestResponseClientSends a SOAP request message and waits for the response to be received from the recipient.- Specified by:
sendRequestResponsein interfaceRequestResponseClient- Parameters:
request- outgoing request message.- Returns:
- incoming response message.
- Throws:
SoapFaultException- if a SOAP fault comes up during processing.MarshallingException- if any exception occurs during marshalling or unmarshalling of SOAP messages.TransportException- if transport-related exceptions come up during processing. This will hinder the response from being sent.InterceptorException- if one of the interceptors pops up with an error.
-