06-07-2021 06:46 PM
I'm really new with AXL so sorry if I'm being stupid.
I need to create a line and fill these values:
Directory Number information:
Directory Number, Route partition, Description, Alerting Name, ASCII Alerting Name, Active;
Directory Number Settins:
Calling Search Space;
Call Forward and Call Pickup Setting:
Forward All.
I tried to use SoapUI along with AXLAPI.wsdl file. When I click on addLine function there comes the XML code, but I don't get how I fill values like Directory Number, for example.
Solved! Go to Solution.
06-07-2021 11:10 PM - edited 06-07-2021 11:11 PM
Well, that's no problem. There's a first time for everyone.
I think that's SOAPUI is a good choice to start with API request!
Here is an example of api call addLine:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5">
<soapenv:Header/>
<soapenv:Body>
<ns:addLine sequence="?">
<line>
<pattern>1000</pattern>
<description>created by axl</description>
<usage>Device</usage>
<routePartitionName uuid="?">glo_intern</routePartitionName>
<callForwardAll>
<callingSearchSpaceName uuid="?">CSS_National</callingSearchSpaceName>
<destination>1001</destination>
</callForwardAll>
<callPickupGroupName uuid="?">Pickup_Duesseldorf_00</callPickupGroupName>
<alertingName>Home Office</alertingName>
<asciiAlertingName>Home Office</asciiAlertingName>
</line>
</ns:addLine>
</soapenv:Body>
</soapenv:Envelope>
Please look at Cisco Devnet - Cisco Administrative XML (AXL) webpage.
https://developer.cisco.com/site/axl/
Is very helpful!
best regards
06-07-2021 11:10 PM - edited 06-07-2021 11:11 PM
Well, that's no problem. There's a first time for everyone.
I think that's SOAPUI is a good choice to start with API request!
Here is an example of api call addLine:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5">
<soapenv:Header/>
<soapenv:Body>
<ns:addLine sequence="?">
<line>
<pattern>1000</pattern>
<description>created by axl</description>
<usage>Device</usage>
<routePartitionName uuid="?">glo_intern</routePartitionName>
<callForwardAll>
<callingSearchSpaceName uuid="?">CSS_National</callingSearchSpaceName>
<destination>1001</destination>
</callForwardAll>
<callPickupGroupName uuid="?">Pickup_Duesseldorf_00</callPickupGroupName>
<alertingName>Home Office</alertingName>
<asciiAlertingName>Home Office</asciiAlertingName>
</line>
</ns:addLine>
</soapenv:Body>
</soapenv:Envelope>
Please look at Cisco Devnet - Cisco Administrative XML (AXL) webpage.
https://developer.cisco.com/site/axl/
Is very helpful!
best regards
06-08-2021 03:35 PM
Exactly what I needed, thank you!
06-08-2021 09:37 AM
TIPS:
In some cases (rare), things like uuid="?" and sequence="?" attributes among some others can cause errors.
(I'm talking about leaving them equal to "?" -- if you know the values that replace the ?, that's fine).
I usually delete those in my XML requests. It's just force of habit now.
Also, some requests that return multiple responses (eg. lists, like listUser) will have these optional XML elements:
<!--Optional:--> <skip>?</skip> <!--Optional:--> <first>?</first>
There's nothing wrong with using them, but don't leave them in with ? as the value. This will cause an error.
06-08-2021 03:35 PM
Thank you!
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