cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
192
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Gordon Ross on 25-11-2011 07:24:23 AM
I'm trying to use the perfMonAddCounter SOAP call. I can use the OpenSession()/ListCounter()/CloseSession()/perfmonQueryCounterDescription() functions fine.
 
When I try and call addCounter:
 
CounterType  counters = new CounterType[1];
counters[0] = new CounterType("\\\\cucmdev-1\\Cisco CallManager\\RegisteredHardwarePhones");

stub.perfmonAddCounter(handle, counters);
 
I get an IllegalArgumentException thrown by the CallManager SOAP stack (not by my client !)
 
Yet doing:
 
stub.perfmonQueryCounterDescription("\\\\cucmdev-1\\Cisco CallManager\\RegisteredHardwarePhones");
 
works fine (Showing that my counter name is correct).
 
Any suggestions as to what is wrong ?
 
Thanks,
 
GTG

Subject: RE: PerfMonAddCounter throws exception
Replied by: Gordon Ross on 01-02-2012 03:47:37 AM
I've got a solution....

There appears to be an error with the Java class file produces by the wsdl2java program in Apache AXIS1 (and as we all know, in Cisco's little world, AXIS2 doesn't exist 😉  )

The problem is in the CounterType java file. Look for the line:

elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));

and change it to:

elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.cisco.com/ast/soap/", "CounterNameType"));

Then it will work fine.

GTG
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