Cisco Support Community
Community Member

IP Phone Services for Developers: RisPort returns


I am trying to use the Risport SelectCmDevice following the user cisco documentation in orden to get the IP of a device, but I m getting an error :

array(3) { ["faultcode"]=> string(31) "soapenv:Server.generalException" ["faultstring"]=> string(37) "Error the cmSelectionCriteria is null" ["detail"]=> array(2) { ["stackTrace"]=> string(4715) "Error the cmSelectionCriteria is null at Source) at Source) at sun.reflect.GeneratedMethodAccessor1509.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at at at at org.apache.axis.strategies.InvocationStrategy.visit( at org.apache.axis.SimpleChain.doVisiting( at org.apache.axis.SimpleChain.invoke( at org.apache.axis.handlers.soap.SOAPService.invoke( at org.apache.axis.server.AxisServer.invoke( at org.apache.axis.transport.http.AxisServlet.doPost( at javax.servlet.http.HttpServlet.service( at bla bla bla

Soap Request

$xml_data ='<soap:Envelope xmlns:soap="" xmlns:soapenc="" xmlns:tns="" xmlns:types="" xmlns:xsi="" xmlns:xsd="">';

$xml_data .='<soap:Header>';

$xml_data .='<tns:AstHeader id="id1">';

$xml_data .='<SessionId xsi:type="xsd:string">' . $CCMSessionID .'</SessionId>'; //

$xml_data .='</tns:AstHeader>';

$xml_data .='</soap:Header>';

$xml_data .='<soap:Body soap:encodingStyle="">';

$xml_data .='<tns:SelectCmDevice>';

$xml_data .='<StateInfo xsi:type="xsd:string" />';

$xml_data .='<CmSelectionCriteria href="#id1"/>';

$xml_data .='</tns:SelectCmDevice>';

$xml_data .='<tns:CmSelectionCriteria id="id1" xsi:type="tns:CmSelectionCriteria">';

$xml_data .='<MaxReturnedDevices xsi:type="xsd:unsignedInt">10</MaxReturnedDevices>';

$xml_data .='<Class xsi:type="tns:DeviceClass">Phone</Class>';

$xml_data .='<SelectBy xsi:type="tns:CmSelectBy">Name</SelectBy>';

$xml_data .='<SelectItems href="#id2">SEP001AA1E01C4B</SelectItems>';

$xml_data .='</tns:CmSelectionCriteria>';

$xml_data .='<soapenc:Array id="id2" soapenc:arrayType="tns:SelectItem[2]">';

$xml_data .='<Item href="#id3"/><Item xsi:null="1"/>';

$xml_data .='</soapenc:Array>';

$xml_data .='<tns:SelectItem id="id3" xsi:type="tns:SelectItem">';

$xml_data .='<Item xsi:type="xsd:string"/></tns:SelectItem>';

$xml_data .= '</soap:Body>';

$xml_data .= '</soap:Envelope>';

some ideas?

Any example that works or help will be appreciated

Best regards



Re: IP Phone Services for Developers: RisPort returns

Here's the skinny on how you find a working example:

Click on Advanced Search in the upper left corner.. search term:


And under 4 you select the unified communication and video category and then this forum to further limit the search.

The post you're looking for is called "Working sample of a RisPort SelectCmDevice query"

I know the search engine they have here sucks quite a bit.. but it still manages to find some useful results every now and then so you should always give it a try :)

Community Member

Re: IP Phone Services for Developers: RisPort returns

Hi Stephan

Your example worked for me !!!!

u right CCM search here is suck and also the some documentation about from Cisco...

Thanks you


Community Member

Re: IP Phone Services for Developers: RisPort returns

Community Member

Re: IP Phone Services for Developers: RisPort returns

If there is enough interest, I am thinking to create a free tool to retrieve phone list (extension, mac, description, etc.) from the CCM and save it in various formats (XML, CVS, devicelistx.asp format, etc). We already have it working as part of PhoneTop Messenger, but I like to create a stand-alone, free app, just to retrieve the phone list.

CreatePlease to create content