com.xmatters.ibm.tivoli.util
Class TivoliWebServiceUtil
java.lang.Object
com.xmatters.ibm.tivoli.util.TivoliWebServiceUtil
public class TivoliWebServiceUtil
- extends java.lang.Object
Used to interact with the Tivoli SRM web services
- Author:
- bneate
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 |
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
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 servicesuser
- The username to use for the Service Manager web servicespassword
- The password to use for the Service Manager web services
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 servicesuser
- the user for the Service Manager web servicespassword
- 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