Trouble with the SelectCmDevice operation

Version 1
    This document was generated from CDN thread

    Created by: Eric Rubin on 18-12-2008 08:53:01 PM
    I'm having trouble with the CCM SelectCmDevice operation. It seems like no matter what XML I send I get a response of "400 Bad Request".

    The Cisco Unified Communications Manager XML Developers Guide - Release 7.0(1) states that "some Serviceability SOAP operations are only available when the server runs the Cisco Unified Communications Manager software" and lists SelectCmDevice as of these services. It says "Applications that support multiple server configurations (servers that run the Cisco Unified Communications Manager software, or the Cisco Unity Connection software, or both) must use the getProductInformation() interface to determine whether the operation they want to perform is available." But it also says that getProductInformation was introduced in version 6.0 and my CCM is version 5.1.

    So how can I tell if my CCM is running Cisco Unified Communications Manager software? I don't know if this is relevant, but when I log into the CCM it says: "please select from the following products:" and "Cisco CallManager Administration" is the only product listed.

    If it's any help, here is an example of a request I sent and the CCM's response:

    POST :8443/realtimeservice/services/RisPort HTTP/1.1
    SOAPAction: "http://schemas.cisco.com/ast/soap/action/#RisPort#SelectCmDevice"
    Host: https://192.168.97.52:8443/realtimeservice/services/RisPort
    Authorization: Basic Y2NtYWRtaW5pc3RyYXRvcjpjMXNjbzEyMw==
    Connection: keep-alive
    Content-Type: text/xml; charset=utf-8
    Accept: text/xml
    Content-Length: 1198

    <?xml version="1.0" encoding="UTF-8"?>
    <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">
    <soapenv:Body>
    <ns1:SelectCmDevice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://schemas.cisco.com/ast/soap/">
    <StateInfo xsi:type="xsd:string"/>
    <CmSelectionCriteria xsi:type="ns1: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">Unknown</Status>
    <NodeName xsi:type="xsd:string" xsi:nil="true"/>
    <SelectBy xsi:type="xsd:string">Name</SelectBy>
    <SelectItems soapenc:arrayType="ns2:SelectItem[1]" xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <item xsi:type="ns1:SelectItem">
    <Item xsi:type="xsd:string">*</Item>
    </item>
    </SelectItems>
    </CmSelectionCriteria>
    </ns1:SelectCmDevice>
    </soapenv:Body>
    </soapenv:Envelope>

    HTTP/1.1 400 Bad Request
    Transfer-Encoding: chunked
    Date: Thu, 18 Dec 2008 22:50:29 GMT
    Server: Apache-Coyote/1.1
    Connection: close

    0

    Subject: Re: Trouble with the SelectCmDevice operation
    Replied by: David Staudt on 19-12-2008 04:02:36 PM
    Please take a look at this how-to I just posted:

    http://developer.cisco.com/web/axl/wikidocs

    Questions/comments/corrections welcome.