cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2464
Views
0
Helpful
2
Replies

AXL SOAP request fails on CUCM 10.5

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>

-----------------------------------------------------

2 Replies 2

stephan.steiner
Spotlight
Spotlight

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?

TDoan
Level 1
Level 1

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

Getting Started

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: