03-19-2015 08:20 AM
Hi.
I'm experiencing a problem when adapting AXL requests from API 1.0 to API 10.0 or API 10.5.
Almost identical request templates, works for an SQL statement, but does not work for any other request.
Below, I put two examples. THe first work OK, the second one does not.
¿Can anyone what I'm doing wrong on 2nd example?
Thanks.
----------Examples-------------------
This request works correctly, for a "executeSQLQuery" method (It works even supressing "xmlns:xsi", "xmlns:xsd" and "xsi:schemaLocation" attributes):
<?xml version="1.0" encoding="UTF-8"?>
<st:script xmlns:st="http://www.mydomain.com/XSD/2006/myfolder/myname">
<st:headers>
</st:headers>
<st:body>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://www.cisco.com/AXL/API/10.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soapenv:Header/>
<soapenv:Body>
<ns:executeSQLQuery
xmlns:axl="http://www.cisco.com/AXL/10.0"
xsi:schemaLocation="http://www.cisco.com/AXL/10.0 http://gkar.cisco.com/schema/axlsoap.xsd">
<sql>Select * from FACInfo</sql>
</ns:executeSQLQuery>
</soapenv:Body>
</soapenv:Envelope>
</st:body>
<st:response>
<st:lookfor elementname="return" canbeempty="true" response="OK"/>
</st:response>
</st:script>
-----------------------------
This request does NOT work, replacing method just for "addFacInfo":
<?xml version="1.0" encoding="UTF-8"?>
<st:script xmlns:st="http://www.mydomain.com/XSD/2006/myfolder/myname">
<st:headers>
</st:headers>
<st:body>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://www.cisco.com/AXL/API/10.0"
<soapenv:Header/>
<soapenv:Body>
<ns:addFACInfo sequence="?">
<facInfo>
<name>FAC123456</name>
<code>123456</code>
<authorizationLevel>5</authorizationLevel>
</facInfo>
</ns:addFACInfo>
</soapenv:Body>
</soapenv:Envelope>
</st:body>
<st:response>
<st:lookfor elementname="return" canbeempty="true" response="OK"/>
</st:response>
</st:script>
-----------------------------------------------------
03-20-2015 03:00 AM
What's the actual request going over the wire (with headers) and what's the full response? Also.. what do you see in the AXL logs on CUCM (go to CUCM serviceability, download logs from AXL service).
Off the top of my head, I'm concerned about your st: namespace.. what's that all about? And why is there a <script> tag around everything?
03-23-2015 11:40 PM
Hi,
Please try this.
<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:addFacInfo sequence="1">
<facInfo>
<name>Test12345</name>
<code>12345</code>
<authorizationLevel>5</authorizationLevel>
</facInfo>
</ns:addFacInfo>
</soapenv:Body>
</soapenv:Envelope>
///
You need to setup SOAPAction (CUCM:DB ver=10.5), and Authorization (UserName, Password) for this.
I hope these will help you.
Regards
Thuy Doan
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