cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1808
Views
0
Helpful
5
Replies

listphone AXL API not returning any value

PriyankaSK0179
Level 1
Level 1

I am trying to SOAPUI listphone

 

below is the request

 

  • <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/10.5">

    <soapenv:Header/>

    <soapenv:Body>

    <ns:listPhone>

    <searchCriteria>

    <!--Optional:-->

    <name>%</name>

    <devicePoolName>Default</devicePoolName>

    </searchCriteria>

    <returnedTags>

    <name></name>

    <model></model>

    <ownerUserName></ownerUserName>

    </returnedTags>

    </ns:listPhone>

    </soapenv:Body>

    </soapenv:Envelope>

got the below response

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/10.5">
<soapenv:Body>
<ns:listPhoneResponse>
<return/>
</ns:listPhoneResponse>
</soapenv:Body>
</soapenv:Envelope>
<!--This API has been processed by GAXL not AXL-->

5 Replies 5

theflyingwombat
Level 1
Level 1

Do you actually have a device pool called "Default"? If not, change it to one you have phones in or remove the line and try to run it again.  

You should be able to use just 'name' as a bare minimum search criteria

 

<searchCriteria>
   <name>%</name>
</searchCriteria>

 

 

 

Yes. I tried just by having <name>%</name> as searchcriteria and it made not difference

Your original <listPhone> request works fine for me on my 10.5 system.  My suspicion might be that you are perhaps not querying the right system, or a new system without any phones configured...maybe a node replication issue?  if that's not the case, then it would seem something quite weird is wrong with AXL on your CUCM, and you may want to open a DevNet ticket for more in-depth troubleshooting: https://developer.cisco.com/site/support/

You have to specify some "returned tags" for example: 

 

<returnedTags ctiid="?" uuid="?">
<name>?</name>
<description>?</description>
<product>?</product>
<model>?</model>

</returnedTags>
</ns:listPhone>
</soapenv:Body>
</soapenv:Envelope>

thedd
Level 1
Level 1

Please Note:
A List request is basicly a two part request:

1. searchCriteria

2. returnedTags

CUCM dos not retunr anything if you don't name what you want to be returned.

Here is one exaple:

 

<searchCriteria><name>%</name><devicePoolName>Default</devicePoolName></searchCriteria><returnedTags><name/><model/><ownerUserName/></returnedTags>