Author Message
aha1973
Joined: Nov 10, 2016
Messages: 2
Offline
Hi,

We are trying to obtain the list of agents through the CCMA SOAP/REST API and we end up getting the same error:

Exception caught by web service layer: getAgentsList System.ArgumentException: Item has already been added. Key in dictionary: '5112020_181750$1006$1006' Key being added: '5112020_181750$1006$1006'
at Nortel.Applications.CCMA.OAM.ServerOperations.getAllAssociatedServers(String strCCMSName, List`1& AssociatedServer, CcmaError& error)
at Nortel.Applications.CCMA.OAM.ServerOperations..ctor(String ipAddress, String strCCMAUsername, String strCCMAUserID)
at Nortel.Applications.CCMA.OAM.UserOperations.getAgentsList(String ccmsIPAddress, AgentFullDetails[]& agentsArray, CcmaError& error)</errorMsg>

We first authenticate to get the Token and the and then within the SOAP or REST request we add the header NTSSOCookie with the value of the token but we end up getting the error above. Are we missing something?

Thanks,
Alex
EdwardO'Connor
Joined: Mar 14, 2022
Messages: 16
Offline
Hi Alex,
It's not clear the root cause of the error from what you are showing me.

Use the Service Description here:
https://<CCMA hostname>/WebServices/Authentication/Service.asmx?WSDL
To get your NTSSOCookie (token).

Then take a look at:
Avaya Aura® Contact Center CCMA Open Interfaces Chapter 3 Page 8 CCMA Rest Style, comes bundled with
Avaya Aura Contact Center CCMA Open Interfaces SDK

If you need further help I would suggest you open a Technical Support Request.
It may be easier to test this out with an API test tool.
regards
Edward
Go to:   
Mobile view