com.xmatters.ibm.tivoli.util
Class TivoliWebServiceUtil

java.lang.Object
  extended by com.xmatters.ibm.tivoli.util.TivoliWebServiceUtil

public class TivoliWebServiceUtil
extends java.lang.Object

Used to interact with the Tivoli SRM web services

Author:
bneate

Field Summary
static java.lang.String MAXIMO_NAMESPACE
           
static java.lang.String MAXIMO_NAMESPACE_PREFIX
           
 
Constructor Summary
TivoliWebServiceUtil(java.lang.String url, java.lang.String user, java.lang.String password)
          Construct a new ServiceManagerScriptObject with the specified url and user/password combination
 
Method Summary
 void initializeClient(java.lang.String url, java.lang.String user, java.lang.String password)
          Initialize this class with the specified url and user/password combination
 org.dom4j.Node sendReceive(java.lang.String objectName, org.dom4j.Element payload)
          Send a SOAP request to the Maximo server and return the contents of the returned SOAP body
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXIMO_NAMESPACE

public static final java.lang.String MAXIMO_NAMESPACE
See Also:
Constant Field Values

MAXIMO_NAMESPACE_PREFIX

public static final java.lang.String MAXIMO_NAMESPACE_PREFIX
See Also:
Constant Field Values
Constructor Detail

TivoliWebServiceUtil

public TivoliWebServiceUtil(java.lang.String url,
                            java.lang.String user,
                            java.lang.String password)
Construct a new ServiceManagerScriptObject with the specified url and user/password combination

Parameters:
url - The url of the Service Manager web services
user - The username to use for the Service Manager web services
password - The password to use for the Service Manager web services
Method Detail

initializeClient

public void initializeClient(java.lang.String url,
                             java.lang.String user,
                             java.lang.String password)
Initialize this class with the specified url and user/password combination

Parameters:
url - the url of the Service Manager web services
user - the user for the Service Manager web services
password - the password for the Service Manager web services

sendReceive

public org.dom4j.Node sendReceive(java.lang.String objectName,
                                  org.dom4j.Element payload)
Send a SOAP request to the Maximo server and return the contents of the returned SOAP body

Parameters:
payload - A dom4j Element that will be the payload of the SOAP request
Returns:
A dom4j Node containing the contents of the returned SOAP body element or null if the request failed