Class AbstractSoapClient
- java.lang.Object
-
- com.aquima.interactions.foundation.connectivity.impl.AbstractSoapClient
-
- All Implemented Interfaces:
IConnection
,ISoapConnection
- Direct Known Subclasses:
HttpSoapConnection
public abstract class AbstractSoapClient extends Object implements ISoapConnection
Abstract base class for a soap client that uses xml element to connect to a Soap webservice.- Since:
- 8.1
- Author:
- Jon van Leuven
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSoapClient(String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getName()
This method returns the name of the connection object.ConnectionType
getType()
This method returns the type of the connection object.abstract void
invoke(ISoapRequest request, ISoapResponseHandler handler)
Send an xml request to a SOAP endpoint by providing the header and body elements.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aquima.interactions.foundation.connectivity.ISoapConnection
getUrl
-
-
-
-
Constructor Detail
-
AbstractSoapClient
protected AbstractSoapClient(String name)
-
-
Method Detail
-
invoke
public abstract void invoke(ISoapRequest request, ISoapResponseHandler handler) throws IOException
Description copied from interface:ISoapConnection
Send an xml request to a SOAP endpoint by providing the header and body elements. This method will create a soap 1.1 envelope with the provided elements and sends it to the soap endpoint.- Specified by:
invoke
in interfaceISoapConnection
- Parameters:
request
- The soap request responsible for creating the request, may not be null.handler
- The handler that is used when the connection handles the response.- Throws:
IOException
- When an error occurs connecting to SOAP endpoint.
-
getName
public String getName()
Description copied from interface:IConnection
This method returns the name of the connection object. The name is used to uniquely identify the connection object.- Specified by:
getName
in interfaceIConnection
- Returns:
- the name of the connection object.
-
getType
public ConnectionType getType()
Description copied from interface:IConnection
This method returns the type of the connection object.- Specified by:
getType
in interfaceIConnection
- Returns:
- the type of the connection object.
-
-