cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
224
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Gordon Ross on 14-06-2010 08:39:53 PM
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

Subject: RE: Unable to get example requests to work
Replied by: Erick Wellnitz on 29-12-2011 11:46:58 AM
Were you ever able to get this working?  Were you able to get the MGCP PRI information?

Subject: RE: Unable to get example requests to work
Replied by: Gordon Ross on 29-12-2011 01:03:59 PM
No :-(

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

GTG

Subject: RE: Unable to get example requests to work
Replied by: David Staudt on 05-01-2012 03:28:28 PM
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>
      <soaperfmonListInstance soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <Host xsi:type="xsd:string">10.88.131.141</Host>
         <Object xsi:type="soapbjectNameType">Process</Object>
      </soaperfmonListInstance>
   </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>
      <ns1erfmonListInstanceResponse 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>
      </ns1erfmonListInstanceResponse>
   </soapenv:Body>
</soapenv:Envelope>
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links