getIpPhoneServices Request not working in CUCM V8

Version 1
    This document was generated from CDN thread

    Created by: Aaron Graham on 17-06-2011 10:38:12 AM
    Hi All,
    Am trying to add Extenstion Mobility service to the CUCM using AXL. I usally start these developements by adding things in using the web interface and then doing an axl getXXXXXXX request and capturing the response.
    I then reverse engineer the response and turn it into an addXXXXXXXX request by making the appropriated changes as prescribed by the axlsoap.xsd etc.
    Well the getIpPhoneServices AXL request is resulting in that classic 5000 error:
       <axl:Error xmlns:axl="">
    By the way thanks Cisco for such a great error message, F'kin swisswatch.
    Any ideas on why the getIpPhoneServices (which is in the axlsoap.xsd taken off the CUCM version 8 itself), would be not doing its job?
    By the way you get 5000 code when the CUCM doesn't recognise the request. eg if I tried a getGoatsName request.
    Thanks in advance,

    Subject: Re: New Message from Aaron Graham in Administration XML (AXL) - Administrat
    Replied by: Sascha Monteiro on 19-06-2011 05:12:17 AM

    1. post your xml please
    2. have you read 8.0(1) Cisco Unified Communications Manager Admin XML Interface Spec, it has all xml you require

    Subject: RE: Re: New Message from Aaron Graham in Administration XML (AXL) - Adminis
    Replied by: Aaron Graham on 20-06-2011 03:50:37 AM
    Thanks for your response.
    Prior to issuing the following AXL request, I had already added a phone service called "Extension mobility" to the CUCM in question. I have even used the service and it worked across clusters, so I know it has been added correctly. The following request should have responded with the details of the "Extension mobility" service.
    Also attached are two screen shot images showing my development tool which I have used for over a year now (so I know the HTTPS/SOAP side of things are good) and a XML spy diagram showing the request's structure as documented in the xsd I downloaded from the CUCM V8. Note the only "must have" tag is the serviceName/uuid.
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsi="" xmlns:xsd="">
     <axl:getIpPhoneServices xmlns:axl="" xsi:schemaLocation=" http://ccmserver/schema/axlsoap.xsd" sequence="2345">
      <serviceName>Extension mobility</serviceName>

    <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="" xmlns:SOAP-ENV="">
       <axl:Error xmlns:axl="">

    Subject: RE: Re: New Message from Aaron Graham in Administration XML (AXL) - Adminis
    Replied by: Aaron Graham on 22-06-2011 11:56:05 AM
    I found the solution through trial and error (which is the story of our development life in regard to CUCM AXL).
    The initial HTTPS header that I developed a year ago didn't include the line: 
    "SOAPAction: "CUCM DB ver=7.0"
    This was because I found it wasn't needed for all of the calls I used and after I finally got something to work, I was reluctant to alter anything as it took so long to get things going in the first instance.
    8 months later, after many AXL requests having been developed, we upgraded to CUCM 8.0(2). All of the previously devlopment AXL were tested and it was found that all worked without any modifications being required (to either the HTTPS header or the AXL payload). So for example the following still worked even with the AXL/7.0 in the XML attribute "sequence" for the request:
    <axl:addLocation xmlns:axl="" xsi:schemaLocation=" http://ccmserver/schema/axlsoap.xsd" sequence="22">
     However getIpPhoneService etc only became available in CUCM V8.0 onwards. And from reading carefully the section "AXL Versioning Support" in the Cisco Unified Communications Manager XML Developers Guide I noticed the following warning:

    Cisco highly recommends that developers include the version of AXL schema on which an AXL request is based because support for unversioned requests might be removed in future releases of Unified CM.
    Reading this started me thinking that the problem could be related to the correct CUCM D B version specification being required.
    So I updated my HTTPS header generation code to use:
    "SOAPAction: "CUCM DB ver=8.0"
    and I then found that when I tried to call the getIpPhoneServices with the" attribute, would get a
    HTTP/1.1 500 (HTTP 500 Internal Service Fault) error.

    Finally I updated the SOAP/AXL payload to include a matching version attribute "sequence" string of:

    Note the added /API/ was needed also.

    After that the new add/updated/get/remove IpPhoneServices seem to be working fine.

    One last point: The 5000 error code is actually an "Unknown Error" fault. It doesn't necessary mean (as I alluded to in one of my previous posts) unrecognised request situation.