How to Execute Serviceability Requests with SoapUI

SoapUI is an open source, cross-platform web service testing application, https://www.soapui.org/

This example uses the selectCMDeviceExt method of the RisPort70 API. This method allows clients to perform Cisco Unified Communications Manager (Unified CM) device-related queries. The method returns a snapshot of real-time device registration status from each Cisco Unified CM node. The data includes registration status, IP address, model info, and CTI application connections to the device. This request consolidates device records across nodes, returning only the device info for the latest registration.

Setup

Initial setup to test with SoapUI:

  • Download and install SoapUI.
  • Download the WSDL to the local system or have this URL available, where <ServerName> is the server name of Cisco Unified CM: https://<ServerName>:8443/realtimeservice2/services/RISService70?wsdl.

Test

Follow these steps to test an API with SoapUI:

  1. Select File > New Soap Project
  2. Enter the Project Name
  3. For Initial WSDL, select one of the following methods to enter the information:
    • Select Browse and navigate to the location where the WSDL was previously saved.
    • Enter the URL of the WSDL in the dialog box.

    The image below shows the New SOAP Project with the parameters filled in:

  4. Ensure the Create Requests checkbox is enabled. Select OK.
  5. A Progress box displays the status of loading the WSDL.

    The Navigator is populated with the Project Name, for example Serviceability Test, and the methods available in the chosen WSDL. In this example the RisPort70 WSDL includes SelectCmDevice, SelectCmDeviceExt, and SelectCtiItem.

  6. Expand SelectCmDeviceExt and a SOAP request Request 1 is created for selectCmDeviceExt.
  7. Double click Request 1. The SelectCmDeviceExt request XML populates the Request 1 left panel.
  8. Select Auth (Authentication and Security-related settings) in the lower left corner of the Request 1 window.
  9. From the Authorization drop down box, select Add New Authorization. The Add Authorization box is displayed.
  10. Select Basic in the Type box and click OK.
  11. Enter Username and Password in the Authorization dialog box. Username is an application user registered in Cisco Unified CM.
  12. Click the Auth button to close the Authorization dialog box.
  13. If the URL for the Cisco Unified CM node needs to be edited, select the dropdown box to the right of the URL.
  14. Fill in the fields in the XML request by replacing or removing ?.
  15. To execute the request, click the green arrow (Submit request to specified endpoint URL) in the upper left corner of the XML request panel.
  16. The SelectCmDeviceExt response is displayed in the right panel of the Request 1 window.

    A closer view of the right hand panel of the response:

Cisco Unified Communications Manager (Unified CM) and Serviceability version tested: 10.0