02-12-2014 11:00 PM
Hi guys... I need your help... I spent couple hours just trying to resolve "unknow error" but still doesnt have clues. I'm new comer in AXL
, the problem should be easy for you...
The problem is happened when I call AXL SOAP to craete Force Authorization Code, it always return "unknown error". here is the AXL format that I send:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Header/>
<soap:Body>
<addFacInfo sequence="?">
<facInfo>
<name>Computer Login - Full Name</name>
<code>123456</code>
<authorizationLevel>40</authorizationLevel>
</facInfo>
</addFacInfo>
</soap:Body>
</soap:Envelope>
Could you please review what I miss here. The only references I got is only from below AXL schema link which I think a very minimum guidance compare to API of CUC that explain more detail.
Thanks,
Rahman
Solved! Go to Solution.
02-14-2014 01:55 PM
Typically, a AXL request would include header that at least contains
Authorization: Basic Q0NNQWRtaW5pc3RyYXRvcjpjaXNjb19jaXNjbw==
SOAPAction: "CUCM:DB ver=9.1"
Making sure the soapaction version matches the wsdl version in the soap envelope.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/9.1">
Since you are in CUCM 9.1, I believe you can use from 7.0 up to 9.1
Howard
02-13-2014 03:45 PM
Hi Rahman,
What version of AXL Schema and CUCM are you using?
Thanks,
Adrienne
02-13-2014 03:48 PM
Cisco Unified CM Administration - System version: 9.1.1.10000-11
I'm not sure how to check the version of AXL, is that should be same with CUCM?
Thanks
02-14-2014 01:55 PM
Typically, a AXL request would include header that at least contains
Authorization: Basic Q0NNQWRtaW5pc3RyYXRvcjpjaXNjb19jaXNjbw==
SOAPAction: "CUCM:DB ver=9.1"
Making sure the soapaction version matches the wsdl version in the soap envelope.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/9.1">
Since you are in CUCM 9.1, I believe you can use from 7.0 up to 9.1
Howard
02-16-2014 05:30 PM
Thank you guys for help me to pointing out the root problem. I found that the AXL version is 7 although the CUCM in version 9. So I change the XML element to be "addFACInfo" (version 7) instead of "addFacInfo" (latest version). I believe it's happenned because I did not mention the AXL version in XML parameter so that it will use the legacy one (version 7). However after I try to stated the CUCM version of 9 in XML name space and then it works... here is the 9.1 version:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/9.1">
<soapenv:Header/>
<soapenv:Body>
<ns:addFacInfo sequence="?">
<facInfo>
<name>TEST</name>
<code>098765</code>
<authorizationLevel>40</authorizationLevel>
</facInfo>
</ns:addFacInfo>
</soapenv:Body>
</soapenv:Envelope>
Thanks,
Rahman H
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: