03-25-2016 12:03 PM
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
06-02-2016 02:48 PM
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>
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