« Back to Discussion

ReportingService - getCapacityReport method

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
Has anyone successfully generated a capacity report using the MP API?
I have the following code but it is throwing a SoapException - javax.xml.ws.soap.SOAPFaultException: Index: 0, Size: 0.

CapacityReportCriteriaBean cr = new CapacityReportCriteriaBean();
 //1st Sept 2012
cr.setStartInSeconds(1346457600);
 //21st Sept 2012
cr.setEndInSeconds(1348185600);       
ArrayOfInt nodes = new ArrayOfInt();
nodes.getInt().add(0);
QName qn = new QName([http://reports.businesslayer.meetingplace.cisco.com, "getCapacityReport");
JAXBElement nodeCol = new JAXBElement(qn,ArrayOfInt.class, nodes);
cr.setNodeIds(nodeCol);
CapacityReportBean capReport = reportService.getCapacityReport(cr);
 
 
Any Ideas what is causing the SoapException??

Additionally the API method to generate the Capacity Report does not account for the same paramters as GUI.
GUI Parameters
A. Report Type
B. Nodes
C. StartDate and Time
D. EndDate and Time
API Parameters (CapacityReportCriteriaBean)
A. Nodes
B. StartDate and Time
C. EndDate and Time
As you can see the API method does not account for the report type - Also the Nodes parameter for the API is an array of integers,
How can I specify the value "System" as is allowed on the GUI.