01-03-2006 07:10 PM - edited 03-15-2019 03:59 AM
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 Im 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?
01-03-2006 08:56 PM
Nevermind. Found the *obviously* wrong issue. Missing the
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