Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I Am new to WebServices, so I started to learn about them by creating a project. My idea was to create a REST based WCF service with JSON which is consumed by a Windows Application. This Windows application Post's data to the service and the service stores them in DB. Now, I thought, I will add a WebClient which can actually show the data received from the Windows Clients. To display data on my WebClient, I created a self-hosted Signal R console App, which communicates with my WCF service and gets the data to the WebClient.

Now, I realized that I can send data directly to my SignalR server from my WindowsClient and my SignalR server can route it to WebClient, without needing WCF Service in between. Also, I can even send message from my WebClient to Windows clients using SignalR. If I had to use my REST WCF service to send asynchronous messages to clients, then I need to change from WebhttpBinding (which I used for REST) to netTCPBinding and make it a duplex service which is more complicated....and it will no longer be REST compatible

So my question is when I am able to do everything with SignalR, why and where do I need to use WCF or any webService?

Please let me know if there is anything wrong in my understanding...Thanks in advance.
Posted

1 solution

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