IT Operations Management (ITOM)
Showing results for 
Search instead for 
Do you mean 

How to Test NNMi Web Service APIs using SoapUI

JackYangHpe ‎11-29-2016 10:35 AM - edited ‎12-05-2016 01:34 PM

Hewlett Packard Enterprise Network Node Manager i network monitoring software provides a rich set of Web Service based APIs which offer read/write capabilities on all basic NNMi object types, i.e., node, interface, incident, layer 2 connection, etc. Typically, customers develop their client code to interact with NNMi Web Service APIs programmatically.  In some scenarios, however, they may want to retrieve data at the XML layer without writing a line of code.  This blog demonstrates a step-by-step procedure on how to use a free tool, SoapUI, to test NNMi Web Service APIs without developing your own client code.

Try HPE Network Node Manager i for yourself to experience these capabilities.

Test Procedure

Step 1 - Download and Install SoapUI
SoapUI is an open-source web service testing application for service-oriented architectures (SOA) and representational state transfers (REST). The free version can be downloaded here.  At the time of this writing, the latest version is 5.2.1.

Launch the SoapUI installer and follow the onscreen instructions to complete the installation.

Step 2 - Create a new SoapUI Project associated with a Web Service WSDL
Launch the SoapUI. In the SoapUI Console, choose “File | New SOAP Project”:


In the New SOAP Project pop up window, enter “MyNodeServiceProject” in the “Project Name” field, and the NodeService WSDL of your NNMi server in the “Initial WSDL” field, for example, “”, as shown below:


Please note, in this blog, I use NNMi NodeService as an example. NNMi offers a rich set of services for different object types, such as Interface, Incident, IPAddress, etc. The complete list of the services and the WSDL URLs are listed in the table below:


You need to replace the <host> and <port> with the FQDN and port of your NNMi server.

Step 3 - Retrieve all the API Methods Provided by a Service
Once you have entered a valid Web Service WSDL URL, SoapUI connects to the URL, retrieves all the API methods and signatures, and presents them to you under your project. Below is an example showing all the available API methods supported by NodeService:


Step 4 - Test Web Service APIs – Four Examples
Everyone loves examples. So, in this last section, I will show your four examples. But first, before you invoke a call to a method, i.e., make a request, you need to specify the user name and password to your NNMi server in the “Request Properties” table located at the lower-left corner of the SoapUI console as shown below:

The user account must have the “NNMi Web Service Client” role.
You will need to enter user name and password for each request.

Example 1 - Retrieve all nodes, no filters used.

In this example, we will retrieve all the nodes with all the built-in attributes that were discovered by NNMi.
Expand the “getNodes” folder and click “request 1”:


This will open the “Request 1” window, then click on the green Play button on the menu bar, the result data will be displayed on the right panel:


Example 2 – Retrieve nodes using a simple filter (condition).

In this example, we will use a simple filter, i.e., retrieve all the nodes which are in “NORMAL” status.
The simple filter is an instance of “condition” object. You need to specify that the argument (<arg0> tag) is a condition, and it comes with “name”, “operator” and “value”. The XMP excerpt is shown below:

<arg0 xmlns:ns4="" xmlns:xsi="" xsi:type="ns4:condition">

You can cut the XML excerpt above and paste it under the <node:getNodes> tag, then click the green Play button, the result data will be displayed on the right panel:


Example 3 – Retrieve nodes using a more advanced filter (expression).
In this example, we will use a more advanced filter, the “expression”. In an expression filter, you can combine multiple conditions using “AND” or “OR” operators. For example, retrieve a node with a custom attribute name = “ODB_ID” (condition 1), AND the value = “1fcef433504817ef0eae13cc3ada29cd” (condition 2).
You also specify the expression filter in the <arg0> tag:

<arg0 xmlns:ns4="" xmlns:xsi="" xsi:type="ns4:expression">
     <subFilters xsi:type="ns4:condition">
     <subFilters xsi:type="ns4:condition">

You can cut the XML excerpt above and paste it under the <node:getNodes> tag, then click the green Play button, the result data will be displayed on the right panel:


Example 4 – Modify Node Object
In the last example, I will show you how to call the addCustomAttribute method of the NodeService to add a custome attribute “MyCustomAttribute” with the value “MyValue”.
From NNMi SDK document, the signature of addCustomAttribute method takes two parameters:

addCustomAttributes(String id, CustomAttribute[] customAttributes)

where the first parameter is the id of the node to be modified, and second parameter is an array of custom attributes (name/value pair). In this example, I am going to add only one custom attribute “MyCustomAttribute=MyValue”.

To invoke this method from SoapUI, you need to use the following XML excerpt:

<S:Envelope xmlns:S="">
<ns2:addCustomAttributes xmlns:ns2="">

As you can see, I specified the id of the node (57018) to be modified in the first parameter <arg0> and the the custom attribute name/value pair in the 2nd parameter <arg1>.
You need to cut the XML excerpt above and paste it in “addCustomAttribute | request 1”, as shown below:


You may need to change the node id and the custom attribute, then click the green play button. The response from the NNMi WebService will be displayed in the right panel.
You can verify in the NNMi UI console that the new custom attribute has been successfully added to the node:


SoapUI is an efficient tool to test NNMi Web Service APIs without writing any client code. The tricky part is how to invoke the APIs in correct XML format. This blog demonstrated several commonly used usages. Experienced users should be able to use the NNMi SDK document and the Web Service WSDL to design correct XML formatted requests to retrieve any data supported by NNMi Web Service APIs.

Try HPE Network Node Manager i for yourself to experience these capabilities.


About the Author


June 6 - 8, 2017
Las Vegas, Nevada
Discover 2017 Las Vegas
Join us for HPE Discover 2017 in Las Vegas. The event will be held at the Venetian | Palazzo from June 6-8, 2017.
Read more
Apr 18, 2017
Houston, TX
HPE Tech Days - 2017
Follow a group of tech bloggers for a new HPE Tech Day, a full day of sessions about how to create a hybrid IT, from hyperconverged to Composable Infr...
Read more
View all
//Add this to "OnDomLoad" event