Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Using Chat API to create a REST Service

$
0
0

Topic by Sandro Javiel

Content

Hi, we are already consuming Chat through custhelp host. However, we have to create a new chat service based on rest api. Since RN seems not to have an API for such thing we are trying to make SOAP calls based on sequence below:

--> GetChatUrl
     Sent to endpoint of your chat_soap?wsdl.
<-- Returns a ChatUrlResponse, containing a ChatUrl, ChatToken and SiteName.

--> RequestChat
     Sent to ChatUrl from previous step, pass in ChatToken and SiteName from previous step.
<-- Returns a RequestChatResponse containing a SessionID

--> RetrieveMessages
     Sent to ChatUrl from previous step, pass in SessionID from previous step.
<-- Returns a RetrieveMessagesResponse containing messages

--> PostChatMessage
     Sent to ChatUrl from previous step, pass in SessionID from previous step.
<-- Returns a PostChatMessageResponse containing messages

--> TerminateChat
     Sent to ChatUrl from previous step, pass in SessionID from previous step.
<-- Returns a TerminateChatResponse confirming termination of chat

We could create token, but we could not requestChat:

 

Any ideia of what I am doing wrong? 

Tks in advance

 

Version

Chat API

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles