Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a JSON based RestFul WCF service, and it is consumed by a .Net WinForms Client, I am able to do all the CRUD operation from my client, but now I have a requirement where I need to broadcast messages to my clients. These message are not part of the callback for client requests. So, is it possible to achieve this functionality?

Thanks in advance.
Posted

1 solution

I guess you are looking for Broadcasting Events with a Duplex WCF Service[^].
 
Share this answer
 
Comments
CSharpNewbie 2 3-Oct-14 14:30pm    
As I mentioned my service is RestFul WCF service which has WebHttpBinding. But from the article it looks like to broadcast events to clients, I need to change it to netTcpBinding, if I do that my Rest functionality will not work. So probably I need to create 2 endpoints one for REST and another one for SOAP. its getting little complicated....
Yes. You are correct. Try hard, you will succeed. :)
CSharpNewbie 2 3-Oct-14 20:52pm    
Instead of making changes to my service, I used SignalR :). I created a self hosted SignalR server in my server and made my client listen to it
Oh yes. That is the best. Good work. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900