AXL UpdateCallManager

Version 1
    This document was generated from CDN thread

    Created by: EDWARD BROWN on 12-12-2008 06:06:21 AM
    I am having an issue with the AXL envelope fromat for getCallManager and updateCallManager. removeCallManager works but using the same construct for getCallmanager and updateCallManager fails.

    Here is a failing getCallManager request and response:

    Request to AXL Server:
    POST /axl/ HTTP/1.0
    Host: 144.10.207.211:8443
    Authorization: Basic Y2NtYWRtaW46RURTYWRtaW4wMQ==
    Accept: text/*
    Content-type: text/xml
    SOAPAction: "CUCMB ver=6.1"
    Content-length: 465

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><axl:getCallManager xmlns:axl="http://www.cisco.com/AXL/6.1" xsi:schemaLocation="http://www.cisco.com/AXL/6.1 http://ccmserver/schema/axlsoap.xsd"><NameAndGUIDRequest><name>CM_test9Server1</name></NameAndGUIDRequest></axl:getCallManager></SOAP-ENV:Body></SOAP-ENV:Envelope>

    -----
    Response from AXL Server:
    Is Valid=true
    AXLHTTPResponse Internal Error Message=null
    HTTP Version: 1.1
    Status Code: 200
    Status Reason: OK
    Date: Fri, 12 Dec 2008 04:00:32 GMT
    Content-Length: 540
    SOAPAction: "CUCMB ver=6.1"
    Set-Cookie: JSESSIONID=F944C96A2913C3D4B474278273B4AF18; Path=/axl; Secure
    Connection: close
    Content-Type: text/xml;charset=utf-8
    Server: Apache-Coyote/1.1
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>No uuid or name element found</faultstring><detail><axl:Error xmlns:axl="http://www.cisco.com/AXL/API/6.1"><axl:code>5003</axl:code><axl:message>No uuid or name element found</axl:message><request>getCallManager</request></axl:Error></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

    and a successful removeCallManager request and response:

    Request to AXL Server:
    POST /axl/ HTTP/1.0
    Host: 144.10.207.211:8443
    Authorization: Basic Y2NtYWRtaW46RURTYWRtaW4wMQ==
    Accept: text/*
    Content-type: text/xml
    SOAPAction: "CUCMB ver=6.1"
    Content-length: 469

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><axl:removeCallManager xmlns:axl="http://www.cisco.com/AXL/6.1" xsi:schemaLocation="http://www.cisco.com/AXL/6.1 http://ccmserver/schema/axlsoap.xsd"><removeCallManager><name>CM_test6Server1</name></removeCallManager></axl:removeCallManager></SOAP-ENV:Body></SOAP-ENV:Envelope>

    -----
    Response from AXL Server:
    Is Valid=true
    AXLHTTPResponse Internal Error Message=null
    HTTP Version: 1.1
    Status Code: 200
    Status Reason: OK
    Date: Fri, 12 Dec 2008 03:18:24 GMT
    Content-Length: 422
    SOAPAction: "CUCMB ver=6.1"
    Set-Cookie: JSESSIONID=C26C6372F1FA6ED8D2DAF0AD23711391; Path=/axl; Secure
    Connection: close
    Content-Type: text/xml;charset=utf-8
    Server: Apache-Coyote/1.1
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header/><SOAP-ENV:Body><axl:removeCallManagerResponse xmlns:axl="http://www.cisco.com/AXL/API/6.1" xmlns:xsi="http://www.cisco.com/AXL/API/6.1"><return>{2093C16A-B740-4416-818F-535DFB3B826E}</return></axl:removeCallManagerResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

    Subject: Re: AXL UpdateCallManager
    Replied by: Stephan Steiner on 15-12-2008 01:01:34 PM
    Edward - your get syntax looks incorrect. You're using
    <axl:getCallManager......>
    <NameAndGUIDRequest><name>CM_test9Server1</name></NameAndGUIDRequest></axl:getCallManager>

    and it should be
    <axl:getCallManager....>
    <name>CM_test9Server1</name></axl:getCallManager>

    Check the schema when in doubt.. you either use <name>..</name> or <uuid></uuid> for that operation and there are no other parameters.