cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3946
Views
20
Helpful
4
Replies

How do I create a line with certain configurations?

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.

1 Accepted Solution

Accepted Solutions

BjoernMartin
Spotlight
Spotlight

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

View solution in original post

4 Replies 4

BjoernMartin
Spotlight
Spotlight

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

Exactly what I needed, thank you!

npetrele
Cisco Employee
Cisco Employee

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.