Class SoapResponseXmlParser

java.lang.Object
com.aquima.interactions.foundation.connectivity.impl.SoapResponseXmlParser
All Implemented Interfaces:
ISoapResponseHandler

public class SoapResponseXmlParser extends Object implements 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 Details

    • SoapResponseXmlParser

      public SoapResponseXmlParser(SoapRequestXml request)
  • Method Details

    • handleResponse

      public void handleResponse(InputStream response) throws IOException
      Description copied from interface: ISoapResponseHandler
      This method is called by the ISoapConnection.invoke method and receives the response stream.
      Specified by:
      handleResponse in interface ISoapResponseHandler
      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

      public void handleError(String errorMessage, InputStream response) throws IOException
      Description copied from interface: ISoapResponseHandler
      This method is called by the ISoapConnection.invoke method and receives the error stream.
      Specified by:
      handleError in interface ISoapResponseHandler
      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

      public IXmlNode 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.