web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Web socket connection D365 FO Issue

(2) ShareShare
ReportReport
Posted on by 40
Hi Martin ! 
 
I'm really sorry for creating a new thread here for my previous thread related to Websockets , Its becuase Im not find how to reply to your suggestions in the previous threads, dont see any options , hence Im creating new it isnt my intention to create it again and cause confusion hope you really understand .
I really appreciate your help following is the code I have implemented in .NET and trying to call it x++ .
I'm able to connect to WebSocket  , post Connect sync() call the  connection state property is set to Open which signifies HTTP 
handshake has been completed . Following are my queries
1)RecieveAsync () the debugger comes out and the process is stopped after following line of code , I can find out if the connection is established and the response from WB Sever as debugger doesnt navigate to next line .
 
 result = await webSocket.ReceiveAsync(new ArraySegment<byte>(buffer), CancellationToken.None);
pls refer to attachement debuggerSS for detailed explaination of the issue
 
 
2 ) Not able to get the response from .Net and return it in x++ as result Im not able to figure out wats the status .
 
3) I tried exectuting the same process via post Man.
* First I generateToken
*Second I establish connection with WB
*I do a post request which results in output 200K acknowledged .
*Response JSON is shown as out on WEBSOCKET 
 
My only question is where should call the logic for post() after calling the logic for establishing WebSocket Connection? would that be right place to put it? Also I cannot see the output cus unfortunately i havent been able to get the response from .Net into x++.
 
Have attached code snippets pls let me know wat possibly could I do , have been stuck on this issue for a while and its very bothersome now 
I have the same question (0)
  • Martin Dráb Profile Picture
    237,805 Most Valuable Professional on at
    Duplicate; the same text is already in Websocket connection from D365 for integration.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans