org.aselect.system.communication.client.soap12
Class SOAP12Communicator

java.lang.Object
  extended by org.aselect.system.communication.client.soap12.SOAP12Communicator
All Implemented Interfaces:
IClientCommunicator

public class SOAP12Communicator
extends java.lang.Object
implements IClientCommunicator

Client communicator which uses SOAP 1.2 over HTTP.

Description:
The SOAP communicator is used to create, retrieve, and send SOAP 1.2 messages.

Author:
Alfa & Ariss

Constructor Summary
SOAP12Communicator(java.lang.String sCallMethod, SystemLogger systemLogger)
          Creates a new SOAP12Communicator.
 
Method Summary
 java.util.Hashtable sendMessage(java.util.Hashtable htParameters, java.lang.String sTarget)
          Creates a SOAP message of the given parameters and sends it to the given url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAP12Communicator

public SOAP12Communicator(java.lang.String sCallMethod,
                          SystemLogger systemLogger)
Creates a new SOAP12Communicator.

Preconditions:
Postconditions:

Parameters:
sCallMethod - The method name that is used in the SOAP message.
systemLogger - The Logger to log system log entries.
Method Detail

sendMessage

public java.util.Hashtable sendMessage(java.util.Hashtable htParameters,
                                       java.lang.String sTarget)
                                throws ASelectCommunicationException
Creates a SOAP message of the given parameters and sends it to the given url.

Description:
Executes the following steps:

Specified by:
sendMessage in interface IClientCommunicator
Parameters:
htParameters - The API call request parameters (Hashtable with name/value pairs)
sTarget - A String containing the target URL
Returns:
The response parameters of the API call in a Hashtable
Throws:
ASelectCommunicationException - If suplied URL is invalid.
See Also:
IClientCommunicator.sendMessage( java.util.Hashtable,java.lang.String)


Copyright © 2008 SURFnet BV. All Rights Reserved.