Cisco Cisco Prime Central 1.1 Developer's Guide
Appendix
Cisco Prime OSS Integration Guide for MTOSI and 3GPP
OL-28496-01
53
// Create the main element and namespace
// Creates main element for “getAllInventory” Operation.
SOAPElement bodyElement = body
.addChildElement(envelope
.createName(
"getAllInventory",
"inv",
"http://www.3gpp.org/ftp/Specs/archive/32_series/ciscoTgppInventory/sche
ma/InventoryIRPData"));
ma/InventoryIRPData"));
// Add content
bodyElement.addChildElement("invokeIdentifierIn").addTextNode("123");
bodyElement.addChildElement("queryXpathExp").addTextNode(
"/MD=CISCO_PRIME");
// Save the message
message.saveChanges();
MimeHeaders headers = message.getMimeHeaders();
headers.addHeader("SOAPAction", "getAllInventory");
// Set the destination
// Send the message and get the reply
SOAPMessage reply = connection.call(message, wsdlname);
11.5 3GPP Sample Inventory File
A Sample inventory file is given here
IM_20120808_1005+0300_32767_10.86.66.35_10002.xml
Where :
IM – Indicates the management type
20120808 – Date of creation
32767 – File expiry time in hours
10.86.66.35 – Name of the device
10002 – Running serial number ( RC )
11.5.1 3GPP Inventory File Contents
The inventory file contains physical and logical inventory information. A sample inventory
file containing inventory data is given here:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="InventoryXSLT.xsl"?>
<InventoryUnit
xmlns:ns2="http://www.3gpp.org/ftp/specs/archive/32_series/32.626#genericN
rm"
xmlns="http://www.3gpp.org/ftp/specs/archive/32_series/32.696#inventoryNrm
" xmlns:ns4="CiscoTgppInvCommon" xmlns:ns3="CiscoSpecificGGSNNameSpace"
xmlns:ns9="http://www.3gpp.org/ftp/specs/archive/32_series/32.526#sonPolic
yNrm"
<?xml-stylesheet type="text/xsl" href="InventoryXSLT.xsl"?>
<InventoryUnit
xmlns:ns2="http://www.3gpp.org/ftp/specs/archive/32_series/32.626#genericN
rm"
xmlns="http://www.3gpp.org/ftp/specs/archive/32_series/32.696#inventoryNrm
" xmlns:ns4="CiscoTgppInvCommon" xmlns:ns3="CiscoSpecificGGSNNameSpace"
xmlns:ns9="http://www.3gpp.org/ftp/specs/archive/32_series/32.526#sonPolic
yNrm"