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

Created by: Craig Ghareeb on 12-09-2009 10:17:29 PM
I am having trouble making SOAP requests via RISPOT (CUCM 6.1.4) to retrieve information about specific (but multiple) devices.  I'm attempting to retrieve IP Address, Registration information, etc for 2 or more specific devices by name.  Using other examples, I've put together the request below, but I only get response information about the second device in the array, regardless of the number of devices in the array.
 
I've imagined that it was simply a XML syntax error on my part, but can't seem to put my finger on it. 
 
Thanks for any assistance.

My SOAP request for two devices is:

<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" xmlns:ns1="http://schemas.cisco.com/ast/soap/">
<soapenv:Body>
<ns1:SelectCmDevice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<StateInfo xsi:type="xsd:string"/>
<CmSelectionCriteria href="#id0"/>
</ns1:SelectCmDevice>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:CmSelectionCriteria" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://schemas.cisco.com/ast/soap/">
<MaxReturnedDevices xsi:type="xsd:unsignedInt">200</MaxReturnedDevices>
<Class xsi:type="xsd:string">Phone</Class>
<Model xsi:type="xsd:unsignedInt">255</Model>
<Status xsi:type="xsd:string">Registered</Status>
<NodeName xsi:type="xsd:string" xsi:nil="true"/>
<SelectBy xsi:type="xsd:string">Name</SelectBy>
<SelectItems soapenc:arrayType="ns2:SelectItem[2]" xsi:type="soapenc:Array">
<item href="#id1"/>
</SelectItems>
</multiRef>
<multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:SelectItem" xmlns:ns3="http://schemas.cisco.com/ast/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<Item xsi:type="xsd:string">SEP000F34857D89</Item>
<Item xsi:type="xsd:string">SEP00097CBEC9B3</Item>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>




Subject: RE: Retrieving multiple devices with RISPORT
Replied by: Craig Ghareeb on 16-09-2009 02:56:50 PM
Thanks, Stephan!  Excellent post.

Subject: RE: Retrieving multiple devices with RISPORT
Replied by: Stephan Steiner on 16-09-2009 02:38:34 PM
If you search for that topic in the netpro forum (http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&CommCmd=MB%3Fcmd%3Ddisplay_messages%26mode%3Dnew%26location%3D.ee94c94) and limit your results to posts by myself, you'll find a working example

Subject: RE: Retrieving multiple devices with RISPORT
Replied by: Jennifer Pierson on 24-06-2011 04:44:51 PM
If you search for that topic in the netpro forum (http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&CommCmd=MB%3Fcmd%3Ddisplay_messages%26mode%3Dnew%26location%3D.ee94c94) and limit your results to posts by myself, you'll find a working example


I could really use a working sample of this.  The link above is not working.  Can anyone help?
 
 

Subject: RE: Retrieving multiple devices with RISPORT
Replied by: Jennifer Pierson on 27-06-2011 02:23:40 PM
Would it be possible to post the XML that you create with this PHP code?  Thanks!
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