03-22-2017 04:50 AM
Hi , I'm trying to set the " Users associated with line" under the line appearance for a Directory number.
I'm quote comfortable with using SOAP queries but seem to be struggling with this one.
First of all , I couldn't to find it under updateLine in the axl 10.5 schema. In the end i went with the one below from updateUser , but I'm not sure it is right?
<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:updateUser xmlns:axl=\"http://www.cisco.com/AXL/API/10.5\" sequence=\"1\">
<userid>MBatts</userid>
<lineAppearanceAssociationForPresences>
<lineAppearanceAssociationForPresence>
<laapAssociate>t</laapAssociate>
<laapDescription>this is a test description</laapDescription>
<laapProductType>Cisco Unified Client Services Framework</laapProductType>
<laapDeviceName>CSFMBATTS</laapDeviceName>
<laapDirectory>3717</laapDirectory>
<laapPartition>INVLDN-DEVICES-2GS</laapPartition>
</lineAppearanceAssociationForPresence>
</lineAppearanceAssociationForPresences>
</axl:updateUser>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>";
Anyone got this working ??? I don't get an error , but nothing gets updated.
Solved! Go to Solution.
03-22-2017 09:08 AM
Looks like the association you are looking to create is between the line _appearance_ (on a particular phone) and the user. Line-appearance-particular settings are accessible via <updatePhone>. The following requests appears to work on my 10.5 system:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.cisco.com/AXL/API/10.5">
<SOAP-ENV:Body>
<ns1:updatePhone>
<name>CSFDSTAUDT</name>
<lines>
<line>
<index>1</index>
<dirn uuid="{14AAD4F3-1F55-4895-6C27-AB98B9393873}"/>
<associatedEndusers>
<enduser>
<userId>dstaudt</userId>
</enduser>
</associatedEndusers>
</line>
</lines>
</ns1:updatePhone>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
03-22-2017 09:08 AM
Looks like the association you are looking to create is between the line _appearance_ (on a particular phone) and the user. Line-appearance-particular settings are accessible via <updatePhone>. The following requests appears to work on my 10.5 system:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.cisco.com/AXL/API/10.5">
<SOAP-ENV:Body>
<ns1:updatePhone>
<name>CSFDSTAUDT</name>
<lines>
<line>
<index>1</index>
<dirn uuid="{14AAD4F3-1F55-4895-6C27-AB98B9393873}"/>
<associatedEndusers>
<enduser>
<userId>dstaudt</userId>
</enduser>
</associatedEndusers>
</line>
</lines>
</ns1:updatePhone>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: