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

Retrieving user presence and groups

Hi.

I'm trying to retrieve the user groups and contacts and, for each contact, get it's presence.

Also, I'm trying to get the logged in user presence and be able to change it, all using a Windows Store App (Windows 8.1, WinRT).

After reading the documentation (https://developer.cisco.com/fileMedia/download/f4a5c1d3-e8c9-4a5c-ac6c-c68dedaa8f9f page 26), I saw that there are some APIs that can help me accomplish that, but they all start by calling a CUPS API to login: 

https://address:8443/EPASSoap/service/v90


The loggin type that I'm trying to use is "thirdstandalone" since I don't want to be another Jabber client, but only retrieve the necessary information for the logged in user. I also want to use windows authentication so I don't need to ask the user for it's password.


Whenever I call the login method, I get an error saying: Internal server error. Ask system admin to check logs


The internal logs show:


2016-09-28 10:28:17,567 WARN  [http-bio-443-exec-267] handlers.LoginHandler - process:Undefined client type used; cType=thirdstandalone

2016-09-28 10:28:17,567 INFO  [http-bio-443-exec-267] handlers.LoginHandler - process:Created session info for userid:620823| cType:thirdstandalone| client-version: 0.0.0.0 |force:false | auth-type:USERNAME_PASSWORD

2016-09-28 10:28:17,568 INFO  [http-bio-443-exec-267] handlers.LoginHandlerAbstract - prelogin:queryString=EXECUTE PROCEDURE ucSOAPPreLogin('620823','BPI-CUPS-LIS-01','10.184.0.11','BPI-CUPS-LIS-01.uc.gbpi.loc');

2016-09-28 10:28:17,573 WARN  [http-bio-443-exec-267] handlers.LoginHandlerAbstract - process:PRELOGIN reasoncode=FAILURE. Could not retieve 'ClientTypeDetails', returning 'internal error to client:620823, client-type: thirdstandalone

2016-09-28 10:28:17,574 WARN  [http-bio-443-exec-267] handlers.LoginHandlerAbstract - Process: Failure


The request sent was:


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

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:epas="urn:cisco:epas:soap"

xmlns="urn:cisco:epas:soap">

<soapenv:Body>

<login client-type="thirdstandalone">

<username>620823</username>

<password>mypassword</password>

</login>

</soapenv:Body>

</soapenv:Envelope>

The response was:


<?xml version='1.0' ?>

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"

   xmlns:xsd="http://www.w3.org/2001/XMLSchema"

   xmlns:xml="http://www.w3.org/XML/1998/namespace"

   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <env:Body>

        <epas:login-resp cup-version="10.5.2.23900(3)"  xmlns:epas="urn:cisco:epas:soap" >

            <epas:failure>

                <epas:reason>Internal server error. Ask system admin to check logs</epas:reason>

            </epas:failure>

        </epas:login-resp>

    </env:Body>

</env:Envelope>


The current installed version of the HCS is:

Cisco Unified CM Administration

System version: 10.5.2.13900-12

Any help is appreciated.

Thanks in advance,

David

1 Reply 1

dstaudt
Cisco Employee
Cisco Employee

As it looks like you have multiple detailed questions and may need some troubleshooting assistance, I would strongly recommend opening a ticket with DevNet Developer Support here to pursue: https://developer.cisco.com/site/devnet/support/

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: