AXL & addPhoneButtonTemplate

Version 1
    This document was generated from CDN thread

    Created by: Dennis Heim on 08-06-2012 05:51:34 PM
    I am trying to add a phone button template. In this case, take a 7945 template as the base. I was using axl 8.5, but am trying 7.1, since it atleast gives errors instead of just error 500 for everything. When I do this I get an axl error message that only states "error". What am I missing to add a phone button template?
     
    POST https://192.168.200.210:8443/axl/ HTTP/1.0
    User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
    Content-Type: text/xml
    Accept: text/*
    SOAPAction: "CUCMB ver=7.1"
    <soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ns='http://www.cisco.com/AXL/API/7.1'>
    <soapenv:Header/><soapenv:Body>
    <ns:addPhoneButtonTemplate>
    <phoneButtonTemplate>
    <name>7945-2L</name>
    <basePhoneTemplateName>Standard 7945 SCCP</basePhoneTemplateName>
    <buttons>
    <button>
    <feature>Line</feature>
    <buttonNumber>1</buttonNumber>
    </button>
    <button>
    <feature>Line</feature>
    <buttonNumber>2</buttonNumber>
    </button>
    </buttons>
    </phoneButtonTemplate>
    </ns:addPhoneButtonTemplate>
    </soapenv:Body>
    </soapenv:Envelope>

    Subject: RE: AXL & addPhoneButtonTemplate
    Replied by: David Staudt on 05-09-2012 03:34:57 PM
    The following requests works on my 8.5(1) system:
     
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5">
       <soapenv:Header/>
       <soapenv:Body>
          <ns:addPhoneButtonTemplate sequence="1">
             <phoneButtonTemplate>
                <name>Test 7945 Template</name>
                <basePhoneTemplateName>Standard 7945 SCCP</basePhoneTemplateName>
                <buttons>
                   <button>
                      <feature>Line</feature>
                      <label>Line 2</label>
                      <buttonNumber>2</buttonNumber>
                   </button>
                </buttons>
             </phoneButtonTemplate>
          </ns:addPhoneButtonTemplate>
       </soapenv:Body>
    </soapenv:Envelope>
     
     
    I think the problem with the request above is that it attempts to modify Button 1, which is a 'fixed' button on a 7945 and cannot be modified in a template.