02-18-2024 01:42 PM
We are issuing a request on our newly installed CUCM 15 and I am getting nothing in the response despite having 3 records in that list. Our CUCM 14 works fine and returns the requested values.
POST /axl/ HTTP/1.1 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><axl:listCCAProfiles xmlns:axl="http://www.cisco.com/AXL/API/14.0"><searchCriteria><ccaId>%</ccaId></searchCriteria><returnedTags><ccaId></ccaId></returnedTags></axl:listCCAProfiles></SOAP-ENV:Body></SOAP-ENV:Envelope> Sent 311 bytes in 111.616 mS: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <axl:listCCAProfiles xmlns:axl="http://www.cisco.com/AXL/API/14.0"> <searchCriteria> <ccaId>%</ccaId> </searchCriteria> <returnedTags> <ccaId> </ccaId> </returnedTags> </axl:listCCAProfiles> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
HTTP/1.1 200 Date: Sat, 17 Feb 2024 23:13:24 GMT Content-Length: 274 Content-Type: text/xml;charset=ISO-8859-1 Server: X-Frame-Options: SAMEORIGIN Strict-Transport-Security: max-age=31536000; includeSubdomains Content-Security-Policy: default-src *; script-src * 'unsafe-inline' 'unsafe-eval';style-src * 'unsafe-inline'; img-src * data: 'unsafe-inline'; X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Received 274 bytes in 0.076 mS: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:listCCAProfilesResponse xmlns:ns2="http://www.cisco.com/AXL/API/14.0"> <return/> </ns2:listCCAProfilesResponse> </soap:Body> </soap:Envelope> <!--This API has been processed by GAXL not AXL-->
Solved! Go to Solution.
02-20-2024 11:51 AM
I can reproduce the problem if version 14 SOAPAction and XMLNS are included:
POST https://cucm15:8443/axl/ HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "CUCM:DB ver=14.0 listCCAProfiles"
Content-Length: 426
Host: cucm15:8443
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.5 (Java/16.0.2)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<ns:listCCAProfiles xmlns:ns="http://www.cisco.com/AXL/API/14.0">
<searchCriteria>
<ccaId>%</ccaId>
</searchCriteria>
<returnedTags>
<ccaId>
</ccaId>
</returnedTags>
</ns:listCCAProfiles>
</soapenv:Body>
</soapenv:Envelope>
(Returns zero records)
However, specifying version 15 seems to work:
POST https://cucm15:8443/axl/ HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "CUCM:DB ver=15.0 listCCAProfiles"
Content-Length: 426
Host: cucm15:8443
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.5 (Java/16.0.2)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<ns:listCCAProfiles xmlns:ns="http://www.cisco.com/AXL/API/15.0">
<searchCriteria>
<ccaId>%</ccaId>
</searchCriteria>
<returnedTags>
<ccaId>
</ccaId>
</returnedTags>
</ns:listCCAProfiles>
</soapenv:Body>
</soapenv:Envelope>
The request listCCAProfiles exists in CUCM v14, so AFAIK this should work and is likely a bug in v15, albeit with workaround of sending v15 in the AXL request.
I've created defect # CSCwj06815 to track the issue.
02-20-2024 11:51 AM
I can reproduce the problem if version 14 SOAPAction and XMLNS are included:
POST https://cucm15:8443/axl/ HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "CUCM:DB ver=14.0 listCCAProfiles"
Content-Length: 426
Host: cucm15:8443
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.5 (Java/16.0.2)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<ns:listCCAProfiles xmlns:ns="http://www.cisco.com/AXL/API/14.0">
<searchCriteria>
<ccaId>%</ccaId>
</searchCriteria>
<returnedTags>
<ccaId>
</ccaId>
</returnedTags>
</ns:listCCAProfiles>
</soapenv:Body>
</soapenv:Envelope>
(Returns zero records)
However, specifying version 15 seems to work:
POST https://cucm15:8443/axl/ HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "CUCM:DB ver=15.0 listCCAProfiles"
Content-Length: 426
Host: cucm15:8443
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.5 (Java/16.0.2)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<ns:listCCAProfiles xmlns:ns="http://www.cisco.com/AXL/API/15.0">
<searchCriteria>
<ccaId>%</ccaId>
</searchCriteria>
<returnedTags>
<ccaId>
</ccaId>
</returnedTags>
</ns:listCCAProfiles>
</soapenv:Body>
</soapenv:Envelope>
The request listCCAProfiles exists in CUCM v14, so AFAIK this should work and is likely a bug in v15, albeit with workaround of sending v15 in the AXL request.
I've created defect # CSCwj06815 to track the issue.
02-20-2024 02:18 PM
Having adjusted the header to refer to the new version (which I thought I did, but apparently not) I am now able to run all of our commands on the CUCM 15.
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