RISPort -> "No handler found"

Version 1
    This document was generated from CDN thread

    Created by: SHRENIK KASTURI on 26-07-2008 12:29:02 AM
    I am trying to port some of the scripts that I had written for CCM 4.2(3) to CUCM 6.1 and I am stuck on one of them that gets some real-time info. After reading through the docs I think I have made all the necessary changes. However, when I make the risport query I get an error saying :

    "No Handler found for SelectCmDevice"

    The text of my request is as follows:

    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:tns="http://schemas.cisco.com/ast/soap/"
    xmlns:types="http://schemas.cisco.com/ast/soap/encodedTypes"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
    <tns:AstHeader id="id1">
    <SessionId xsi:type="xsd:string">1217031364962</SessionId>
    </tns:AstHeader>
    </soap:Header>
    <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <tns:SelectCmDevice>
    <StateInfo xsi:type="xsd:string" />
    <CmSelectionCriteria href="#id1"/>
    </tns:SelectCmDevice>
    <tns:CmSelectionCriteria id="id1" xsi:type="tns:CmSelectionCriteria">
    <MaxReturnedDevices xsi:type="xsd:unsignedInt">10</MaxReturnedDevices>
    <Class xsi:type="tnseviceClass">Phone</Class>
    <Model xsi:type="xsd:unsignedInt">255</Model>
    <Status xsi:type="tns:CmDevRegStat">Registered</Status>
    <SelectBy xsi:type="tns:CmSelectBy">Name</SelectBy>
    <SelectItems href="#id2" />Name </tns:CmSelectionCriteria>
    <soapenc:Array id="id2" soapenc:arrayType="tns:SelectItem[2]">
    <Item href="#id3"/>
    <Item xsi:null="1"/>
    </soapenc:Array>
    <tns:SelectItem id="id3" xsi:type="tns:SelectItem">
    <Item xsi:type="xsd:string">SEP*</Item>
    </tns:SelectItem>
    </soap:Body>
    </soap:Envelope>

    What am I missing?

    Any help greatly appreciated.

    Thanks,

    Shrenik

    Subject: Re: RISPort -> "No handler found"
    Replied by: David Staudt on 07-08-2008 04:51:33 PM
    Can you confirm your request is going to the correct URL:

    https://<CUCM IP>:8443/realtimeservice/services/RisPort

    Here is a sample request that works on my CM6 setup:

    <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:soap="http://schemas.cisco.com/ast/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <soapenv:Header>
    <AstHeader xsi:type="soap:AstHeader">
    <SessionId xsi:type="xsd:string">?</SessionId>
    </AstHeader>
    </soapenv:Header>
    <soapenv:Body>
    <soap:SelectCmDevice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <CmSelectionCriteria xsi:type="soap:CmSelectionCriteria">
    <MaxReturnedDevices xsi:type="xsd:unsignedInt">200</MaxReturnedDevices>
    <Class xsi:type="xsd:string">Any</Class>
    <Model xsi:type="xsd:unsignedInt">255</Model>
    <Status xsi:type="xsd:string">Any</Status>
    </CmSelectionCriteria>
    </soap:SelectCmDevice>
    </soapenv:Body>
    </soapenv:Envelope>

    Subject: Re: RISPort -> "No handler found"
    Replied by: SHRENIK KASTURI on 19-08-2008 10:08:15 AM
    Thanks David. That helped. I was using a wrong URL. One follow-up question, in your example how could I specifiy the device name or DN within the selectio criteria?

    Thanks,

    Shrenik

    Subject: Re: RISPort -> "No handler found"
    Replied by: David Staudt on 19-08-2008 11:08:09 PM
    I had some problems getting that to work myself, and the engineers seem to think there may be a bug in this area. The bug # is CSCsu03284, if you would like to keep track of it.

    Subject: Re: RISPort -> "No handler found"
    Replied by: David Staudt on 20-08-2008 07:09:45 PM
    We did work out the soap array format needed and the requests are succeeding. We will be looking to improve the doc in this area to make it more clear. An example:

    <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:soap="http://schemas.cisco.com/ast/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <soapenv:Header>
    <AstHeader xsi:type="soap:AstHeader">
    <SessionId xsi:type="xsd:string"/>
    </AstHeader>
    </soapenv:Header>
    <soapenv:Body>
    <soap:SelectCmDevice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <CmSelectionCriteria xsi:type="soap:CmSelectionCriteria">
    <MaxReturnedDevices xsi:type="xsd:unsignedInt">200</MaxReturnedDevices>
    <Class xsi:type="xsd:string">Any</Class>
    <Model xsi:type="xsd:unsignedInt">255</Model>
    <Status xsi:type="xsd:string">Any</Status>
    <SelectBy xsi:type="xsd:string">Name</SelectBy>
    <SelectItems soapenc:arrayType="soap:SelectItem[1]" xsi:type="soapenc:Array">
    <item xsi:type="soap:SelectItem">
    <Item xsi:type="xsd:string">SEP000000000000</Item>
    </item>
    </SelectItems>
    </CmSelectionCriteria>
    </soap:SelectCmDevice>
    </soapenv:Body>
    </soapenv:Envelope>

    Subject: Re: RISPort -> "No handler found"
    Replied by: SHRENIK KASTURI on 20-08-2008 08:15:40 PM
    Thanks David.