How to update device profile name?

Version 1
    This document was generated from CDN thread

    Created by: Breno Lucena on 14-02-2012 08:27:28 AM
    Hello All,
     
    Does anyone knows how to update a Device profile name? (AXL SOAP)
     
    I´ve already tryied the xml request described below:
     

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <SOAP-ENV:Body>
        <axl:updateDeviceProfile xmlns:axl="http://www.cisco.com/AXL/1.0" xsi:schemaLocation="http://www.cisco.com/AXL/API/1.0 axlsoap.xsd" sequence="1234">
          <profile ctiid="{0}" uuid="{1}">
            <name>{2}</name>
          </profile>
        </axl:updateDeviceProfile>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

     
    Unfortunaly, it doesn´t work!
     
    Thanks.
     
    Breno Lucena

    Subject: RE: How to update device profile name?
    Replied by: Martin Sloan on 14-02-2012 03:46:32 PM
    Hi Breno,

    I was successful with this update request:

    <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body><updateDeviceProfile xmlns="http://www.cisco.com/AXL/API/8.5">
    <name xsi:type="xsd:string">DP_123456</name>
    <description xsi:type="xsd:string">This is a test update</description>
    </updateDeviceProfile>
    </soap:Body>
    </soap:Envelope>

    HTH!

    Marty

    Subject: RE: How to update device profile name?
    Replied by: Breno Lucena on 15-02-2012 10:55:58 AM
    Heyyyyyyy, Marty!

    Thanks mate!

    Regards.

    Breno Lucena   cold

    Subject: RE: How to update device profile name?
    Replied by: Martin Sloan on 16-02-2012 09:50:21 AM
    Breno,

    No problem, but I need to pay closer attention to my replies   You'll need to use the 'newName' tag in the message, NOT the description tag....  Here's a sample:

    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <updateDeviceProfile xmlns="http://www.cisco.com/AXL/API/8.5">
    <name xsi:type="xsd:string">DP_CurrentName</name>
    <newName xsi:type="xsd:string">DP_NewName</newName>
    </updateDeviceProfile>
    </soap:Body>
    </soap:Envelope>


    HT1H!

    Thanks,

    Marty