« Back to Serviceability XML Questions

Unable to get example requests to work

Combination View Flat View Tree View
Threads [ Previous | Next ]
I've been trying to get started with the Serviceability APIs. (I'm ultimately wanting to get useage details of MGCP PRI)
 
My first one worked fine:
 
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://w
ww.w3.org/2001/XMLSchema">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
   <q1erfmonListCounter xmlns:q1="http://schemas.cisco.com/ast/soap/">
           <Host xsi:type="xsd:string">192.168.0.1</Host>
   </q1erfmonListCounter>
</soap:Body>
</soap:Envelope>
 
I then tried the following from example from the docs:
 
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<q1erfmonListInstance xmlns:q1="http://schemas.cisco.com/ast/soap/">
<Host xsi:type="xsd:string">192.168.0.1</Host>
<Object xsi:type="xsd:string">Process</Object>
</q1erfmonListInstance>
</soap:Body>
</soap:Envelope>
 
But I then got back a Java stacktrace ! Top of the trace:
 
<?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><soapenv:Fault>
  <faultcode>soapenv:Server.userException</faultcode>
  <faultstring>org.xml.sax.SAXException: Bad types (class java.lang.String -&gt; class com.cisco.ccm.serviceability.soap.perfport.ObjectNameType)</faultstring>
  <detail>
   <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">org.xml.sax.SAXException: Bad types (class java.lang.String -&gt; class com.cisco.ccm.serviceability.soap.perfport.ObjectNameType)
....
 
I'm sending both request to the URL:
 
https://192.168.0.1:8443/perfmonservice/services/PerfmonPort?wsdl
 
Can someone tell me what I'm doing wrong ?
 
Thanks,
 
GTG

Were you ever able to get this working? Were you able to get the MGCP PRI information?

No :-(

I'm going to have to log a developer support call (Not cheap !) to find out.

GTG

The following request works fine on my 8.5(1) system:
 
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.cisco.com/ast/soap/">
   <soapenv:Header/>
   <soapenv:Body>
      <soapemoticonerfmonListInstance soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <Host xsi:type="xsd:string">10.88.131.141</Host>
         <Object xsi:type="soapemoticonbjectNameType">Process</Object>
      </soapemoticonerfmonListInstance>
   </soapenv:Body>
</soapenv:Envelope>
 
I note your snippet above has a small typo: "<q1erfmonListInstance..."
 
<q1erfmonListInstance xmlns:q1="http://schemas.cisco.com/ast/soap/">
 
My response:
 
<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>
      <ns1emoticonerfmonListInstanceResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://schemas.cisco.com/ast/soap/">
         <ArrayOfInstance soapenc:arrayType="ns1:InstanceType[121]" xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
            <item xsi:type="ns1:InstanceType">
               <Name xsi:type="ns1:InstanceNameType">init</Name>
            </item>
            <item xsi:type="ns1:InstanceType">
               <Name xsi:type="ns1:InstanceNameType">migration_0</Name>
            </item>
...
            <item xsi:type="ns1:InstanceType">
               <Name xsi:type="ns1:InstanceNameType">tomcat</Name>
            </item>
         </ArrayOfInstance>
      </ns1emoticonerfmonListInstanceResponse>
   </soapenv:Body>
</soapenv:Envelope>