Topic by Vladimir Silva
Content
Greetings,
I get "Invalid destination agent ID" calling SOAP ChatRouted after the .NET media bar call to Login (to obtain an agentid) & a SOAP router calls authenticate to get a SESSION ID along with a chat msg sent thru the chat web page & received thru the system message:
RNChatQueuedMessage
Here is the SOAP request/response (Code is attached). Can somebody tells what is wrong? I got the AgentID from .Net & the chat ID from the web page. Why am I getting Invalid destination agent ID?
Here is a brief workflow of what I am doing:
1) MebiarBar agent calls Login (.NET). Agent ID is received & sent to J2EE server (SetAgenState - available)
2) J2EE srv: @ boot time up loads API mgr, gets chat URL, autheticates(gets SESSION ID) & starts polling for chats.
3) The J2EE srv gets the agent state request & queues the agentID
4) End user posts a chat thru the chat web page. J2EE server receives RNChatQueuedMessage & queues the chat.
5) J2EE routes the chat calling the SOAP ChatRouted with the AgentID(.Net) & the chat id (RNChatQueuedMessage) using the SESSION ID oftained after authenticate.
6) THE SOAP RESPONSE IS: Invalid destination agent ID
I hope this is clear. Any help would be appreciated
Thanks
-- SOAP REQUEST
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<ns3:ChatClientInfoHeader xmlns:ns3="urn:messages.common.chat.ws.rightnow.com/v1" soapenv:mustUnderstand="0">
<ns3:AppID>chat</ns3:AppID>
<ns3:SessionID>gnjqa0z40cde4u6yvxoghyz3</ns3:SessionID>
</ns3:ChatClientInfoHeader>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" mustUnderstand="1">
<wsse:UsernameToken><wsse:Username></wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"></wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ns6:ChatRouted xmlns:ns6="urn:messages.uq.chat.ws.rightnow.com/v1">
<ns6:TransactionRequestData><ns6:Timestamp>2013-03-14T14:45:32.321+00:00</ns6:Timestamp>
<ns6:TransactionID>2</ns6:TransactionID>
<ns6:SiteName>simplictiavaya0212</ns6:SiteName>
</ns6:TransactionRequestData>
<ns6:ChatID id="220" />
<ns6:AgentClientID id="821" />
<ns6:InteractionID>1363272332320</ns6:InteractionID>
</ns6:ChatRouted>
</soapenv:Body></soapenv:Envelope>
-- RESPONSE
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body>
<S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">
<faultcode>S:Server</faultcode>
<faultstring>Invalid destination agent ID.</faultstring>
<detail>
<ns3:RequestErrorFault xmlns:ns3="urn:faults.chat.ws.rightnow.com/v1" xmlns="urn:messages.common.chat.ws.rightnow.com/v1" xmlns:ns2="urn:messages.uq.chat.ws.rightnow.com/v1">
<ns3:exceptionCode>BAD_REQUEST</ns3:exceptionCode>
<ns3:exceptionMessage>Invalid destination agent ID.</ns3:exceptionMessage>
</ns3:RequestErrorFault>
</detail>
</S:Fault></S:Body></S:Envelope>