<?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>Device Registration Status with Perl and SOAP::Lite</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=5336950" />
  <subtitle>Device Registration Status with Perl and SOAP::Lite</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=5336950</id>
  <updated>2013-05-21T12:13:02Z</updated>
  <dc:date>2013-05-21T12:13:02Z</dc:date>
  <entry>
    <title>RE: Device Registration Status with Perl and SOAP::Lite</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5937901" />
    <author>
      <name>Tim Lowrey</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5937901</id>
    <updated>2012-06-28T06:19:15Z</updated>
    <published>2012-06-28T06:19:15Z</published>
    <summary type="html">Hi David,
I just got the same request. Need to get the Device / current IP address of every device on my cluster(s). Just curious, did you get similar with Perl:LWP? Did you just walk CUCM Administration webpages or something else? 
Thanks,
Tim</summary>
    <dc:creator>Tim Lowrey</dc:creator>
    <dc:date>2012-06-28T06:19:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: Device Registration Status with Perl and SOAP::Lite</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5362684" />
    <author>
      <name>Martin Sloan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5362684</id>
    <updated>2012-03-27T20:21:07Z</updated>
    <published>2012-03-27T20:21:07Z</published>
    <summary type="html">David,

Thanks for the info, much appreciated!  I ended up giving LWP a shot instead of SOAP Lite and was able to get it working.  Sometimes  SOAP Lite can be a little too abstract for me and so I wasn't able to mold the request just right.

Thanks again,

Marty</summary>
    <dc:creator>Martin Sloan</dc:creator>
    <dc:date>2012-03-27T20:21:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: Device Registration Status with Perl and SOAP::Lite</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5359703" />
    <author>
      <name>David Staudt</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5359703</id>
    <updated>2012-03-27T16:40:19Z</updated>
    <published>2012-03-27T16:40:19Z</published>
    <summary type="html">It's possible Risport does not like the order of the elements in the CmSelectionCriteria - the WSDL defines a sequence such as the following (tested on my UCM 8.5(1) system:)
 
&lt;soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ris="http://ccm.cisco.com/serviceability/soap/risport70/"&gt;
   &lt;soapenv:Body&gt;
      &lt;SelectCmDevice&gt;
         &lt;CmSelectionCriteria&gt;
            &lt;MaxReturnedDevices&gt;200&lt;/MaxReturnedDevices&gt;
            &lt;Class&gt;Any&lt;/Class&gt;
            &lt;Model&gt;255&lt;/Model&gt;
            &lt;Status&gt;Any&lt;/Status&gt;
            &lt;SelectBy&gt;Name&lt;/SelectBy&gt;
            &lt;SelectItems&gt;
               &lt;Item&gt;*&lt;/Item&gt;
            &lt;/SelectItems&gt;
         &lt;/CmSelectionCriteria&gt;
      &lt;/SelectCmDevice&gt;
   &lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;</summary>
    <dc:creator>David Staudt</dc:creator>
    <dc:date>2012-03-27T16:40:19Z</dc:date>
  </entry>
  <entry>
    <title>Device Registration Status with Perl and SOAP::Lite</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5336949" />
    <author>
      <name>Martin Sloan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5336949</id>
    <updated>2012-03-21T22:39:23Z</updated>
    <published>2012-03-21T22:39:23Z</published>
    <summary type="html">Hello,
 
I've been working with the CUCM Admin XML using Perl with SOAP::Lite and have gotten fairly familiar with the it but recently received a request to gather registration status for the devices in the cluster and now I'm looking toward hopefully gathering the data from RIS.  I have a basic script to request the registration but it's failing with "SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize."  While I'm still searching the net to decode what this could mean in my situation (and checking traces), I thought I'd post here to see if anyone has some suggestions for a noob.  The CUCM version is 8.5.1.  Here's a look at the message and response from the CUCM:
 
Message:
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
&lt;soap:Body&gt;
&lt;SelectCmDevice xmlns="http://schemas.cisco.com/ast/soap/"&gt;
&lt;CmSelectionCriteria&gt;
&lt;Model xsi:type="xsd:int"&gt;404&lt;/Model&gt;
&lt;Status xsi:type="xsd:string"&gt;Any&lt;/Status&gt;
&lt;Class xsi:type="xsd:string"&gt;Any&lt;/Class&gt;
&lt;MaxReturnedDevices xsi:type="xsd:int"&gt;200&lt;/MaxReturnedDevices&gt;
&lt;/CmSelectionCriteria&gt;
&lt;/SelectCmDevice&gt;
&lt;/soap:Body&gt;
&lt;/soap:Envelope&gt;

 
Response:
soapenv:Server.userException, org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
 
Thanks,
 
Marty</summary>
    <dc:creator>Martin Sloan</dc:creator>
    <dc:date>2012-03-21T22:39:23Z</dc:date>
  </entry>
</feed>

