08-16-2018 04:36 AM
I am working on a script to automate the adding of DN to Phone and than adding then making directory number association with a User. I am not able to figure out the AXL syntax for that, will it using SQL or there is some tag for it.
08-16-2018 06:01 AM
Hi,
try this post!
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/11.5">
<soapenv:Header/>
<soapenv:Body>
<ns:updateUser sequence="?">
<userid>USER1</userid>
<lineAppearanceAssociationForPresences>
<lineAppearanceAssociationForPresence>
<laapAssociate>t</laapAssociate>
<laapProductType>Cisco Unified Client Services Framework</laapProductType>
<laapDeviceName>CSFUSER1</laapDeviceName>
<laapDirectory>1062</laapDirectory>
<laapPartition>p_intern</laapPartition>
</lineAppearanceAssociationForPresence>
</lineAppearanceAssociationForPresences>
</ns:updateUser>
</soapenv:Body>
</soapenv:Envelope>
08-16-2018 03:20 PM
08-16-2018 11:04 PM
08-16-2018 11:55 PM
For adding a new DN, I am using the following AXL,
<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:addLine xmlns:axl="http://www.cisco.com/AXL/API/12.0" sequence="12055"> <pattern>5007</pattern> <description>Test<description> <usage>For test purposes</usage> </axl:addLine> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
is the syntax correct?, it's showing an error
08-17-2018 12:19 AM
Yes, Syntax is niccht correct.
<usage>Device</usage>
Example:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/11.5">
<soapenv:Header/>
<soapenv:Body>
<ns:addLine sequence="?">
<line>
<pattern>1000</pattern>
<description>DN 1000</description>
<usage>Device</usage>
<routePartitionName>glo_intern</routePartitionName>
</line>
</ns:addLine>
</soapenv:Body>
</soapenv:Envelope>
08-17-2018 08:53 AM
Note <usage> possible values are listed here, though the one you usually want defaults to 'Device':
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide