cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
482
Views
0
Helpful
1
Replies

listUcService call returns nothing

dkartio20
Level 1
Level 1

Running follow call against CUCM 10.5.2 server

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<SOAP-ENV:Header/>

<SOAP-ENV:Body>

     <axl:listUcService xmlns:axl="http://www.cisco.com/AXL/API/10.5" sequence="1">

          <searchCriteria>

               <name>%</name>

          </searchCriteria>

          <returnedTags>

               <name/>

               <serviceType/>

          </returnedTags>

     </axl:listUcService>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>


And getting this return blank return


<?xml version='1.0' encoding='utf-8'?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<soapenv:Body>

     <ns:listUcServiceResponse xmlns:ns="http://www.cisco.com/AXL/API/10.5">

          <return/>

     </ns:listUcServiceResponse>

</soapenv:Body>

</soapenv:Envelope>


I can run a getUcService call for a service named "clacup01a", and it works fine and returns the following:

<?xml version='1.0' encoding='utf-8'?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<soapenv:Body>

<ns:getUcServiceResponse xmlns:ns="http://www.cisco.com/AXL/API/10.5">

     <return>

          <ucService uuid="{SOME UUID}">

          <serviceType>IM and Presence</serviceType>

          <productType>Unified CM (IM and Presence)</productType>

          <name>clacup01a</name>

          ...

          </ucService>

     </return>

</ns:getUcServiceResponse>

</soapenv:Body>

</soapenv:Envelope>

Anyone have any ideas why nothing is returned by the list call, when there are services available to return???

Thanks

1 Reply 1

npetrele
Cisco Employee
Cisco Employee

Perhaps it has something to do with the way you're using the namespace?  Try this - it works for me.

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

<SOAP-ENV:Header/>

<SOAP-ENV:Body>

     <axl:listUcService xmlns:axl="http://www.cisco.com/AXL/API/10.5" sequence="1">

          <searchCriteria>

               <name>%</name>

          </searchCriteria>

          <returnedTags>

               <name/>

               <serviceType/>

          </returnedTags>

     </axl:listUcService>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Technically, the axl namespace is redundant if you do the above, so here's an example without it.


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

<SOAP-ENV:Header/>

<SOAP-ENV:Body>

     <ns:listUcService sequence="1">

          <searchCriteria>

               <name>%</name>

          </searchCriteria>

          <returnedTags>

               <name/>

               <serviceType/>

          </returnedTags>

     </ns:listUcService>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Getting Started

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: