Class SoapResponseXmlParser
java.lang.Object
com.aquima.interactions.foundation.connectivity.impl.SoapResponseXmlParser
- All Implemented Interfaces:
ISoapResponseHandler
This ISoapResponseHandler implementation may be used to retrieve an IXmlNode from the ISoapConnection. See the
getXml() method.
- Since:
- 9.0
- Author:
- Jon van Leuven
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetXml()
This method returns the valid soap response as an IXmlNode.void
handleError
(String errorMessage, InputStream response) This method is called by the ISoapConnection.invoke method and receives the error stream.void
handleResponse
(InputStream response) This method is called by the ISoapConnection.invoke method and receives the response stream.
-
Constructor Details
-
Method Details
-
handleResponse
Description copied from interface:ISoapResponseHandler
This method is called by the ISoapConnection.invoke method and receives the response stream.- Specified by:
handleResponse
in interfaceISoapResponseHandler
- Parameters:
response
- The response stream of the handled response, may be null.- Throws:
IOException
- This exception should be thrown when the response could not be handled properly.
-
handleError
Description copied from interface:ISoapResponseHandler
This method is called by the ISoapConnection.invoke method and receives the error stream.- Specified by:
handleError
in interfaceISoapResponseHandler
- Parameters:
errorMessage
- The error message.response
- The response stream of the handled response, may be null.- Throws:
IOException
- This exception should be thrown when the response could not be handled properly.
-
getXml
This method returns the valid soap response as an IXmlNode.- Returns:
- The response, may be null;
- Throws:
SoapFaultException
- Is thrown when a soap fault is returned by the soap connection.
-