org.aselect.system.communication.client.soap12
Class SOAP12Communicator
java.lang.Object
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
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 |
SOAP12Communicator
public SOAP12Communicator(java.lang.String sCallMethod,
SystemLogger systemLogger)
- Creates a new
SOAP12Communicator
.
Preconditions:
sCallMethod
may not be null.
systemLogger
should be initialized.
Postconditions:
_systemLogger
is set with systemLogger
.
_sCallMethod
is set with sCallMethod
.
- Parameters:
sCallMethod
- The method name that is used in the SOAP message.systemLogger
- The Logger
to log system log entries.
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:
- Builds a SOAP 1.2 request message
- Send the message to the server
- Recieves SOAP response message from the server
- Parse the repsonse and return the parameters it contains
- 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.