Cisco Unified Presence APIs Developer Forums

« Back to SOAP API

Beginner help on accessing CUPS SOAP Api

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
I am trying to use listUser or getUser Api to list or get users from CUPS 8.5.1. I could only successfully run the getCUPSVersion so far. But all other request fails with the message shown below. I tried to use the sample code provided in AxlToolKit dowloaded from CUPS-->Application-->Plugins and using the Api methods instead of the sql query/update. I am not able to figure out the reason for error.
Any help would be appreciated.
Thanks,
Samit
 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="[url=http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOA]http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOA
P-ENV:Body><axl:getCUPVersion xmlns:axl="http://www.cisco.com/AXL/API/1.0" sequence="1322091116669"/
></SOAP-ENV:Body></SOAP-ENV:Envelope>
---------------------
Positive response received.
---------------------
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle
="[url=http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header/><SOAP-ENV:Body><axl:getCUPVersionResp]http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header/><SOAP-ENV:Body><axl:getCUPVersionResp
onse xmlns:axl="http://www.cisco.com/AXL/API/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
ce" sequence="1322091116669"><return><version>8.5.1.10000(35)</version></return></axl:getCUPVersionR
esponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
---------------------
*****************************************************************************
Sending message...
---------------------
<SOAP-ENV:Envelope xmlns:SOAP-ENV="[url=http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOA]http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOA
P-ENV:Body><axl:listUser xmlns:axl="http://www.cisco.com/AXL/API/1.0" sequence="1322091118106"><sear
chCriteria><userid>*</userid></searchCriteria><returnedTags><firstName/><lastName/><userid/>
</return
edTags></axl:listUser></SOAP-ENV:Body></SOAP-ENV:Envelope>
---------------------
ERROR: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for
element 'axl:listUser'
.
---------------------
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle
="[url=http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><fault]http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header/><SOAP-ENV:Body><SOAP-ENV:Fault><fault
code>SOAP-ENV:Client</faultcode><faultstring>cvc-complex-type.2.4.c: The matching wildcard is strict
, but no declaration can be found for element 'axl:listUser'.</faultstring><detail><axl:Error xmlns:
axl="[url=http://www.cisco.com/AXL/API/1.0"><axl:code>5001</axl:code><axl:message>cvc-complex-type.2.4.c]http://www.cisco.com/AXL/API/1.0"><axl:code>5001</axl:code><axl:message>cvc-complex-type.2.4.c:
The matching wildcard is strict, but no declaration can be found for element 'axl:listUser'.</axl:m
essage><request>listUser</request></axl:Error></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:E
nvelope>
---------------------
 

Sorry for the trouble.
It seems to be working after setting it up with axis and the request is as follows.

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.or
g/soap/envelope/"><soapenv:Body><ns1:listUser xmlns:ns1="http://www.cisco.com/AXL/API/8.5"><searchCr
iteria><userid>%</userid></searchCriteria><returnedTags><firstName></firstName><lastName></lastName>
</returnedTags></ns1:listUser></soapenv:Body></soapenv:Envelope>

Thanks,
Samit

Hi Samit,
As an FYI - CUP doesnt support AXL interface in CDN.

Regards,
Jose

Jose,
Thanks for your response. Could you please clarify little bit more.
I see the following interfaces from DEVELOPER GUIDE FOR CISCO UNIFIED PRESENCE RELEASE 8.5 :
1. SIP for Instant Messaging and Presence Leveraging Extensions (SIMPLE)
2. Extensible Messaging and Presence Protocol (XMPP)
3. Bidirectional Streams over Synchronous HTTP (BOSH)
4. Client Configuration Web Service (SOAP)
5. Presence Web Service (SOAP/REST)
Are these supported in CDN? Did I bring up a different Api or it was covered in #4 or #5. Your response would help me a lot to decide before I want to proceed with one or more of these APIs.
Thanks,
Samit

HI Samit,
Yes - you were referring to the AXL API which is not #4 or #5. Even though its exposed, its not supported in CDN. CUCM supports this interface in CDN but CUP doesnt.

Regards,
Jose

Thanks a lot.
Samit