cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1439
Views
8
Helpful
4
Replies

AXL soap to add FAC got "unknown error"

rahman_hadi
Level 1
Level 1

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.

https://developer.cisco.com/site/collaboration/management/axl/develop-and-test/documentation/latest-version/axl-soap.gsp

Thanks,

Rahman

1 Accepted Solution

Accepted Solutions

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

View solution in original post

4 Replies 4

amoherek
Cisco Employee
Cisco Employee

Hi Rahman,

What version of AXL Schema and CUCM are you using?

Thanks,

Adrienne

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

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

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