Performing operations with SOAP Web Services
The .wsdl files provided by TrueSight Server Automation - SOAP Web Services are located on the Application Server. You can get them by using the following URL syntax:
https://hostname_of_Application_Server:9843/services/BSAservice_name.wsdl?=
For example, to get the .wsdl files provided by TrueSight Server Automation - SOAP Web Services from an Application Server with a hostname of myAppServer, you would use the following URLs:
https://myAppServer:9843/services/BSAAssumeRoleService.wsdl?=
https://myAppServer:9843/services/BSACLITunnelService.wsdl?=
https://myAppServer:9843/services/BSALoginService.wsdl?=
https://myAppServer:9843/services/BSARESTRequestService.wsdl?=
The general procedure for using BLCLI commands via web services is to log on to the TrueSight Server Automation Application Server, assume a role, and then run commands. Keep in mind that all the elements in a BLCLI command are case sensitive.
The following table describes the classes and operations that are available for use with the TrueSight Server Automation - SOAP Web Services:
Webservice Name | Operation | Description |
---|---|---|
LoginService | loginUsingUserCredential() | Enables you to log on using user credentials. The session ID is returned. Use this session ID in all subsequent calls to identify the session. Input headers:
Input body:
|
loginUsingSessionCredential() | Enables you to log on using a previously acquired session credential. | |
AssumeRoleService | assumeRole() | Enables you to assume a role after logging on. Input headers:
Input body:
|
CLITunnelService | executeCommandByParamList() | Enables you to execute a CLI command with arguments. Based on CLI syntax, you can choose one of the operations from CLITunnelService. Input headers:
Input body:
|
executeCommandByParamString() | Enables you to execute a CLI command without arguments. Input headers:
Input body:
| |
executeCommandByParamListAndAttachment() | Enables you to execute a CLI command with arguments and attachments. Input parameters are the same as for the executeCommandByParamList operation, and you can also pass attachments as arguments. The attachment is expected to be a base64 encoded string passed in the SOAP envelope. | |
executeCommandUsingAttachments() | Enables you to execute a CLI command with arguments and attachments. The attachment is expected to be a base64 encoded string passed in the SOAP envelope. | |
RESTRequestService | getXML | Returns the ouput as xml for the provided REST uri and query parameters. |
getJSON | Returns ouput as JSON for the provided REST uri and query parameters. | |
postXML | Performs a post call for the given rest uri and xml content. | |
postJSON | Performs a post call for the given rest uri and JSON content. |
Related topics