cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
361
Views
0
Helpful
1
Replies

AXL Processing

Ryan Mullins
Level 1
Level 1

While trying to do a few custom utilities, I ran into this issue on 4.1(3)sr2. When trying to use any of the add Methods, the CCM is coming back with not seeing the correct elements it's expecting. Here is the soap that is being sent for addUser:

POST /CCMApi/AXL/V1/soapisapi.dll

Accept: text/xml

Accept: multipart/*

Content-Length: 638

Content-Type: text/xml; charset=utf-8

SOAPAction: "http://www.cisco.com/AXL/1.0/#addUser"

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENC="http://sche

mas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd

="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding

/">

<SOAP-ENV:Body>

<axl:addUser sequence="1234" xsi:schemaLocation="http://www.cisco.com/AXL/1.0 http://gkar.cisco.com/schema/axlsoap.xsd" xmlns:axl="http://www.cisco.com/AXL/1.0/">

<lastname>PERL</lastname>

<userid>perl</userid>

<password>perl</password>

<pin>12345</pin>

</axl:addUser>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

And this is what I’m getting back from the server:

HTTP/1.1 200 OK

Content-Length: 791

Content-Type: text/xml

Client-Date: Wed, 04 Jan 2006 02:47:56 GMT

Client-Response-Num: 1

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyl

e="http://schemas.xmlsoap.org/soap/encoding/">

<SOAP-ENV:Body>

<SOAP-ENV:Fault>

<faultcode>SOAP-ENV:Client</faultcode>

<faultstring>

<![CDATA[Unexpected element. NULL element found. Expecting <lastname>.]]></faultstring>

<detail xmlns:axl="http://www.cisco.com/AXL/API/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in

stance" xsi:schemaLocation="http://www.cisco.com/AXL/API/1.0 http://CCM01/CCMApi/AXL/V1/axlsoap.

xsd">

<axl:error sequence="1234">

<code>5005</code>

<message>

<![CDATA[Unexpected element. NULL element found. Expecting <lastname>.]]></message>

<request>addUser</request>

</axl:error>

</detail>

</SOAP-ENV:Fault>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Has anyone else come across this, or see anything *obviously* wrong that I'm just missing?

1 Reply 1

Ryan Mullins
Level 1
Level 1

Nevermind. Found the *obviously* wrong issue. Missing the tags in the request.