IBM Tivoli Monitoring > Version 6.3 Fix Pack 2 > Administrator's Guide > IBM Tivoli Monitoring Web Services for the SOAP server > SOAP methods
IBM Tivoli Monitoring, Version 6.3 Fix Pack 2
Issuing second-level SOAP requests
Some second-level SOAP methods perform a particular function with the data retrieved, using embedded lower-level methods. CT_EMail and CT_Export are second-level methods that perform this function.
These are the lower-level methods:
- <CT_Get>
- <CT_Redirect>
- <attach>
- <insert>
The <CT_Get> and <CT_Redirect> tags are used as described in SOAP methods. The <attach> tag is used to load a file. The file must be located in the <install_dir>\cms\html directory on Windows or <install_dir>/tables/HUB_Name/HTML on Linux and UNIX. You cannot use relative paths in the <attach> tag. The <insert> tag allows you to load the imbedded text into the retrieved (output) data stream at a point corresponding to its position in the XML request.
The following example shows how a second-level request might be used. This XML creates the file tabledata.htm, which is written with the data from prefix.xls. Next, embedded data is entered using the <insert> tag and a request using the <CT_Get> command is made. Note that this request has an ID value of "NTDATA", which will result in the data tag <XML id=”NTDATA”> being wrapped around that particular request data. The <CT_Redirect> command is used to reroute the request to http://services.xmethods.net:80/soap/servlet/rpcrouter, and a final request is made to insert the data from suffix.xls into tabledata.htm.
<CT_Export> <filename>tabledata.htm</filename> <request> <attach>prefix.xls</attach> </request> <request> <insert> <insertelement> <insertdata> This data has been inserted compliments of CT SOAP server. </insertdata> </insertelement> </insert> </request> <request id="NTDATA"> <CT_Get> <userid>sysadmin</userid> <password></password> <object>NT_System</object> <target>*ALL</target> </CT_Get> </request> <request> <CT_Redirect endpoint="http://services.xmethods.net:80/soap/servlet/rpcrouter"> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <ns1:getTemp xmlns:ns1="urn:xmethods-Temperature" SOAP- ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <zipcode>93117</zipcode> </ns1:getTemp> </SOAP-ENV:Body> </SOAP-ENV:Envelope> </CT_Redirect> </request> <request> <attach>suffix.xls</attach> </request> </CT_Export>
Parent topic:
SOAP methods