As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
How can i use Server Push with my WCF web service to communicate with the asp.net clients and push the data to the browser? Can i implement BOSH with WCF?
Thank you.
NLV
Hi
You can use the attached example I have made.
If you sent it to be a public push server - i.e available via WebService - you will have to add a webservice that will use the MSMQ.
The problem is that you will need to have an IIS installed on both the server and the client.
If you use it internally then MSMQ will be enough.
http://www.codeproject.com/KB/WCF/WcfMsmqServerPush.aspx
There is a sample here
Another alternative is signalR
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am trying to develop web chat integrated to site on ASP.NET. What technology for messaging is better to use for it? Please tell about benefits or disadvantages of each other.
I will be very glad to each answer. I incline to using SignalR.
I wouldn't include WCF just for the fact that it is more of a technology for building services that serve the data you want.
So it really boils down to websockets and SignalR.
websockets are a techonolgy to allow bi-directional communication in a web environment. Of course it isn't supported by all browsers.
SignalR is a library the rolls multiple communication technologies together. EG: websockets & long-polling. It is the better choice for your question as it will automatically take care of the technology that can be used to accomplish the bi-directional communication you seek.
WCF is for tick-client apps; it is not designed to be consumed from a browser.
Signalr is a wrapper around web sockets (with fallbacks) and is what you want to use
WebSockets is a protocol with various implementations in different languages.
For non-real-time scenarios, you would want ASP.Net Web API.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am following this guide here. P2P
One of the advantages I had thought P2P would bring is the fact that it is a serverless setup.
Now that I have this working I noticed that you do need a resolver to keep track of who is connected.
To me this is really does require a server as you need a resolver to make P2P work in the first place.
Ami missing something?
It depends on your definition of a server I suppose. Using a P2P game for example most players will connect to a central point, be matched up and will then communicate between themselves with no involvement from the server.
This means the server doesn't have to host any data it simply has to coordinate those who do. It keeps resources down (as each client only needs to connect once) and the infrastructure is often more robust.
Do you need a central application to coordinate peers? Yes
Does that application need to stream content/data to each peer? No
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What are some actual, realistic situations that one would need to use raw socket programming over WCF? I know performance is one, but are there any others?
There may be situations where you are talking to a third party system that requires communication via sockets (we have to with one).
When the software at the other end of the connection knows nothing about .NET or WCF - the WCF netTcpBinding assumes both ends are implemented using WCF.
say you need to send receive commands from a external device which does not support WCF communication.
Say you would want to pass some commands to a device connected to your serial port.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I was wondering whether a wcf service would be allowed to be hosted on http://Bigrock.in or http://bigrock.com windhows shared hosting or with godaddy's shared windows hosting.
Anyone have any experience with the above and also what are possible the limitation's on these hosts ?
If it isn't allowed there, can someone suggest some hosting plans where I can host wcf service? (for normal usage, nothing heavy)
Yes it is allowed at Bigrock. Send us an email on sales[at]bigrock[dot]com and we will help you with any details you need.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am trying to set up a push notification service for my WP7 app.
I have followed the guides and built a WCF service with WPF front end based on the code provided by the Channel9 WP7 jump start guide (Weather Service exmaple) ; http://channel9.msdn.com/Learn/Courses/WP7TrainingKit/WP7Silverlight/UsingPushNotificationsLab/Exercise-2-Introduction-to-the-Toast-and-Tile-Notifications-for-Alerts
This all works locally with the address "http://localhost:8000/RegirstatorService"
The part I am cluless about is how I translate this app to my server and make it work in the real world.
I have a basic public facing server 2008 setup with a domain and IIS7 running.
What do I do with the WPF app to make it work on my server? Is it just a case of changing the endpoint address so somehwere on my server, and where do i locate it on my server.
any pointers would be helpful. i have had a good read around the web but still cant understand this part of the whole PN process. I ahve never dealt with WCF before and dont have much expreirence with web servers or IIS.
Many thanks.
You might to check out these posts for a more real world example:
http://benjii.me/2010/12/push-notifications-in-windows-phone-7-1-code-on-the-device/
http://benjii.me/2011/01/push-notifications-in-windows-phone-7-2-code-on-the-server/
http://benjii.me/2011/04/push-notifications-in-windows-phone-7-3-push-that-notification/
You're probably most interested in the second one.