org.aselect.system.communication.client.soap11
Class SOAP11Communicator
java.lang.Object
org.aselect.system.communication.client.soap11.SOAP11Communicator
- All Implemented Interfaces:
- IClientCommunicator
public class SOAP11Communicator
- extends java.lang.Object
- implements IClientCommunicator
Client communicator which uses SOAP 1.1 over HTTP.
Description:
The SOAP communicator is used to create, retrieve, and
send SOAP 1.1 messages.
- Author:
- Alfa & Ariss
Method Summary |
java.util.Hashtable |
sendMessage(java.util.Hashtable htParameters,
java.lang.String sUrl)
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 |
SOAP11Communicator
public SOAP11Communicator(java.lang.String sCallMethod,
SystemLogger systemLogger)
- Creates a new
SOAP11Communicator
.
Preconditions:
requestMethod
may not be null.
systemLogger
should be initialized.
Postconditions:
- The systemlogger is set with
systemLogger
.
- 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 sUrl)
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.1 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)sUrl
- 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.