Associate a phone with an application user

Version 1
    This document was generated from CDN thread

    Created by: Wes Schochet on 09-11-2009 10:53:33 PM
    I am having problems adding a phone association to an application user.  Everything looks like it works, but the device is not added to the user.  The user already has a IP Communicator associated to it, i am trying to add another phone.
     
    I send:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="<a>http://schemas.xmlsoap.org/soap/envelope/</a>]" xmlns:xsi="<a>http://www.w3.org/2001/XMLSchema-instance</a>]" xmlns:xsd="<a>http://www.w3.org/2001/XMLSchema</a>]"> 
    <SOAP-ENV:Body>   
      <axl:updateAppUser xmlns:axl="<a>http://www.cisco.com/AXL/API/1.0</a>]" sequence="7537">        
         <userid>54321</userid>        
         <password>X12345</password>            
        <associatedDevices>
        <device>SEP000000032081</device>
        <device>SEP00233341D33B</device>        
      </associatedDevices>   
     </axl:updateAppUser > 
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I get back:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="<a>http://schemas.xmlsoap.org/soap/envelope/</a>]" SOAP-ENV:encodingStyle="<a>http://schemas.xmlsoap.org/soap/encoding/</a>]">
       <SOAP-ENV:Header />
       <SOAP-ENV:Body>
          <axl:updateAppUserResponse xmlns:axl="<a>http://www.cisco.com/AXL/API/1.0</a>]" xmlns:xsi="<a>http://www.cisco.com/AXL/API/1.0</a>]" sequence="7537">
             <return>true</return>
          </axl:updateAppUserResponse>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Ths would make a guy think that he's done well!  However, the new phone ( SEP00233341D33B )does not show associated to the user. 
     
    Has anyone done this successfully?
     

    Subject: RE: Associate a phone with an application user
    Replied by: David Staudt on 10-11-2009 05:23:15 PM
    Currently, you need to get the list of existing associated devices, update the list, and re-send the updated list via updateUser.
     
    This can get unwieldy with more than a few devices, in which case you can look into performing a direct SQL insert via executeSQLUpdate.  See the Data Dictionary doc for table/field details...you will want to look at the 'applicationuserdevicemap' table, I believe.