Description:
Some customers may want to monitor the status of the CA SDM service to make sure it is up and running.
Some monitoring software can execute PowerShell scripts. This document provides a very basic example on how to do that.
Solution:
This document assumes you have some knowledge of Windows PowerShell and the CA Service Desk Manager Web Services API.
CA Support provides this document as an example with no guarantees. CA Support will not assist you with PowerShell. However, we can assist with any queries related to the Service Desk SOAP based Web Services API.
Requirements:
http://localhost:8080/axis/services/USD_R11_WebService?wsdl
Microsoft Documentation: http://technet.microsoft.com/en-us/library/bb978526.aspx
mkdir c:\temp notepad soap.txt Place contents like the following in the soap.txt file (assuming you are calling login() <?xml version = "1.0" ?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <login xmlns="http://www.ca.com/UnicenterServicePlus/ServiceDesk"> <username>ServiceDesk</username> <password>Passwordr11</password> </login> </soap:Body> </soap:Envelope>
PS C:\Users\administrator> $SoapAction = New-Object "System.Collections.Generic.Dictionary''2[System.String,System.String]"
PS C:\Users\administrator> $SoapAction.Add("SOAPAction", "")
PS C:\Users\administrator> $SoapAction
Key Value --- -----
SOAPAction
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body> <loginResponse xmlns="http://www.ca.com/UnicenterServicePlus/ServiceDesk"><loginReturn xmlns="">713249330</loginReturn></loginResponse></soapenv:Body></soapenv:Envelope>