Proper way to reorder lines on a phone through UpdatePhone

Version 1
    This document was generated from CDN thread

    Created by: Jeffrey Sailers on 10-07-2009 05:52:57 PM
    Can someone supply the appropriate way to change the order of lines on a phone through AXL?  I know you have to use the updatePhone call, and I assume you would do a getPhone first to get the current lines.

    Thank You in Advance

    Subject: RE: Proper way to reorder lines on a phone through UpdatePhone
    Replied by: Jeffrey Sailers on 10-07-2009 10:33:18 PM
    I wanted to post an update to this.  I've tried several things, and I have a working method.  Whether it's the preferred method, I'm not sure.
     
    I originally tried to get the current lines, then navigate through the XML response and change the "index" property of the each line element inside the lines element.  When I did that, I got an error response back stating "No UPDATE Permission".  Then I finally figured out that the getPhone AXL call returns a childnode of the line element called "patternUsage".  You have to remove this element before using the same xml string to update the phone because it is only allowed when adding a phone, or when getting a phone (or line).  Once I removed this node, my method worked just fine.
     
    I hope it helps someone else.

    Subject: RE: Proper way to reorder lines on a phone through UpdatePhone
    Replied by: Manas Varma on 28-10-2009 07:24:38 AM
    I am stuck with the same problem that you had. I tried to use the mechanism that you suggested , but I am not getting the XML file that you need to modify. Kindly suggest me , how to modify the XML file.
       thanks in advance