<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>CUCM 8.5 RISPort query SelectCMDevice SelectBy IP address</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_category?p_l_id=194743&amp;mbCategoryId=0" />
  <subtitle>CUCM 8.5 RISPort query SelectCMDevice SelectBy IP address</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_category?p_l_id=194743&amp;mbCategoryId=0</id>
  <updated>2013-05-24T20:20:20Z</updated>
  <dc:date>2013-05-24T20:20:20Z</dc:date>
  <entry>
    <title>RE: CUCM 8.5 RISPort query SelectCMDevice SelectBy IP address</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=194743&amp;messageId=5089267" />
    <author>
      <name>Marco Alghisi</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=194743&amp;messageId=5089267</id>
    <updated>2012-02-01T17:39:40Z</updated>
    <published>2012-02-01T17:39:40Z</published>
    <summary type="html">Hi all,

i have found the error myself.

It is very simple. The right SelectBy parameters for ip address is :

&lt;SelectBy xsi:type="xsd:string"&gt;IpAddress&lt;/SelectBy&gt;

and it is case sensitive. So

&lt;SelectBy xsi:type="xsd:string"&gt;IPAddress&lt;/SelectBy&gt;

doesn't work. I tested myself !!!!!!

Regards
Marco</summary>
    <dc:creator>Marco Alghisi</dc:creator>
    <dc:date>2012-02-01T17:39:40Z</dc:date>
  </entry>
  <entry>
    <title>CUCM 8.5 RISPort query SelectCMDevice SelectBy IP address</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=194743&amp;messageId=5058648" />
    <author>
      <name>Marco Alghisi</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=194743&amp;messageId=5058648</id>
    <updated>2012-01-25T16:13:57Z</updated>
    <published>2012-01-25T16:13:57Z</published>
    <summary type="html">Dear All.
 
after many attemprt i'm able to query Serviceability AXl to obtein Real Time info about phone.
The test query is made by phone name. After that i have tried to get phone info by querying per 
IP address but always i get TotalDevicesFound = 0.
 
The current working query with sep name is :
 
POST /realtimeservice/services/RisPort HTTP/1.1
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://schemas.cisco.com/ast/soap/action/#RisPort#SelectCmDevice"
Content-Length: 1402
Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXX
Host: X.X:X:X:8443

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;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"&gt;
&lt;soapenv:Body&gt;
&lt;ns1:SelectCmDevice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://schemas.cisco.com/ast/soap/"&gt;
&lt;StateInfo xsi:type="xsd:string"/&gt;
&lt;CmSelectionCriteria href="#id0"/&gt;
&lt;/ns1:SelectCmDevice&gt;
&lt;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/"&gt;
&lt;MaxReturnedDevices xsi:type="xsd:unsignedInt"&gt;15&lt;/MaxReturnedDevices&gt;
&lt;Class xsi:type="xsd:string"&gt;Phone&lt;/Class&gt;
&lt;Model xsi:type="xsd:unsignedInt"&gt;255&lt;/Model&gt;
&lt;Status xsi:type="xsd:string"&gt;Registered&lt;/Status&gt;
&lt;NodeName xsi:type="xsd:string" xsi:nil="true"/&gt;
&lt;SelectBy xsi:type="xsd:string"&gt;Name&lt;/SelectBy&gt;  
&lt;SelectItems soapenc:arrayType="ns2:SelectItem[1]" xsi:type="soapenc:Array"&gt;
&lt;item href="#id1"/&gt;
&lt;/SelectItems&gt;
&lt;/multiRef&gt;
&lt;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/"&gt;
&lt;Item xsi:type="xsd:string"&gt;SEPF02572786FA5&lt;/Item&gt;
&lt;/multiRef&gt;
&lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;
 
 
The non working query with IP address is :
 
POST /realtimeservice/services/RisPort HTTP/1.1
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://schemas.cisco.com/ast/soap/action/#RisPort#SelectCmDevice"
Content-Length: 1402
Authorization: Basic YXhsQVBQVXNlcjoxbmYzcm4wMDk=
Host: 145.245.142.89:8443

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;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"&gt;
&lt;soapenv:Body&gt;
&lt;ns1:SelectCmDevice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://schemas.cisco.com/ast/soap/"&gt;
&lt;StateInfo xsi:type="xsd:string"/&gt;
&lt;CmSelectionCriteria href="#id0"/&gt;
&lt;/ns1:SelectCmDevice&gt;
&lt;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/"&gt;
&lt;MaxReturnedDevices xsi:type="xsd:unsignedInt"&gt;15&lt;/MaxReturnedDevices&gt;
&lt;Class xsi:type="xsd:string"&gt;Phone&lt;/Class&gt;
&lt;Model xsi:type="xsd:unsignedInt"&gt;255&lt;/Model&gt;
&lt;Status xsi:type="xsd:string"&gt;Registered&lt;/Status&gt;
&lt;NodeName xsi:type="xsd:string" xsi:nil="true"/&gt;
&lt;SelectBy xsi:type="xsd:string"&gt;IPV4Address&lt;/SelectBy&gt;  
&lt;SelectItems soapenc:arrayType="ns2:SelectItem[1]" xsi:type="soapenc:Array"&gt;
&lt;item href="#id1"/&gt;
&lt;/SelectItems&gt;
&lt;/multiRef&gt;
&lt;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/"&gt;
&lt;Item xsi:type="xsd:string"&gt;10.121.1.59&lt;/Item&gt;
&lt;/multiRef&gt;
&lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;
 
 
Anyone is able to give me some working example with my necessity ?
 
Thanks a lot
Marco</summary>
    <dc:creator>Marco Alghisi</dc:creator>
    <dc:date>2012-01-25T16:13:57Z</dc:date>
  </entry>
</feed>

