Click here to Skip to main content
15,908,013 members
Home / Discussions / C#
   

C#

 
GeneralRe: Create a web service to push messages to clients Pin
PIEBALDconsult5-Sep-11 18:53
mvePIEBALDconsult5-Sep-11 18:53 
GeneralRe: Create a web service to push messages to clients Pin
nitin_ion5-Sep-11 18:55
nitin_ion5-Sep-11 18:55 
GeneralRe: Create a web service to push messages to clients Pin
Pete O'Hanlon5-Sep-11 21:53
mvePete O'Hanlon5-Sep-11 21:53 
GeneralRe: Create a web service to push messages to clients Pin
nitin_ion6-Sep-11 0:00
nitin_ion6-Sep-11 0:00 
GeneralRe: Create a web service to push messages to clients Pin
Pete O'Hanlon6-Sep-11 0:11
mvePete O'Hanlon6-Sep-11 0:11 
GeneralRe: Create a web service to push messages to clients Pin
Roger Wright6-Sep-11 20:35
professionalRoger Wright6-Sep-11 20:35 
AnswerRe: Create a web service to push messages to clients Pin
Mehdi Gholam5-Sep-11 19:52
Mehdi Gholam5-Sep-11 19:52 
AnswerRe: Create a web service to push messages to clients Pin
BobJanova6-Sep-11 0:40
BobJanova6-Sep-11 0:40 
It can't be done; as Mehdi says, web services are implemented on top of HTTP and are inherently request/response (i.e. pull) oriented.

Either you can do it with polling (some sort of intelligent polling that alters its frequency based on activity, if you want to be friendly to your server), or you can come away from the web service idea altogether and create a client/server connection based (probably TCP) chat application. There is simply no such thing as a push model web service due to the protocol on which web services are defined.

However, on any thin client (whether in browser or not) to a web service, you are sending quite a lot of requests anyway, onto which you can piggyback update notification information without adding extra server load. For example, imagining an online IRC type application, you are sending a request every time you type a message, change your status, look up information on another user, join or leave a room, as well as obvious things like following links. The trick is to include update notification (for chat messages, PMs, users in a room, etc) as part of every service response, if you want to minimise requests and still get frequent updates.
GeneralRe: Create a web service to push messages to clients Pin
nitin_ion6-Sep-11 0:42
nitin_ion6-Sep-11 0:42 
GeneralRe: Create a web service to push messages to clients Pin
Pete O'Hanlon6-Sep-11 0:44
mvePete O'Hanlon6-Sep-11 0:44 
GeneralRe: Create a web service to push messages to clients Pin
nitin_ion6-Sep-11 0:47
nitin_ion6-Sep-11 0:47 
GeneralRe: Create a web service to push messages to clients Pin
BobJanova6-Sep-11 3:15
BobJanova6-Sep-11 3:15 
GeneralRe: Create a web service to push messages to clients Pin
PIEBALDconsult6-Sep-11 2:41
mvePIEBALDconsult6-Sep-11 2:41 
GeneralRe: Create a web service to push messages to clients Pin
nitin_ion6-Sep-11 3:09
nitin_ion6-Sep-11 3:09 
GeneralRe: Create a web service to push messages to clients Pin
BobJanova6-Sep-11 3:23
BobJanova6-Sep-11 3:23 
GeneralRe: Create a web service to push messages to clients Pin
Pete O'Hanlon6-Sep-11 3:25
mvePete O'Hanlon6-Sep-11 3:25 
AnswerRe: Create a web service to push messages to clients Pin
Tony Pazzard6-Sep-11 4:15
Tony Pazzard6-Sep-11 4:15 
AnswerRe: Create a web service to push messages to clients Pin
#realJSOP7-Sep-11 0:16
professional#realJSOP7-Sep-11 0:16 
GeneralRe: Create a web service to push messages to clients Pin
nitin_ion7-Sep-11 0:27
nitin_ion7-Sep-11 0:27 
GeneralRe: Create a web service to push messages to clients Pin
#realJSOP7-Sep-11 2:21
professional#realJSOP7-Sep-11 2:21 
AnswerRe: Create a web service to push messages to clients Pin
John Y.7-Sep-11 9:58
John Y.7-Sep-11 9:58 
QuestionDependency Injection Pin
siva4555-Sep-11 16:36
siva4555-Sep-11 16:36 
AnswerRe: Dependency Injection Pin
Abhinav S5-Sep-11 19:12
Abhinav S5-Sep-11 19:12 
QuestionHow can i present my new device to windows to recognise it? Pin
burhankaraman5-Sep-11 9:17
burhankaraman5-Sep-11 9:17 
AnswerRe: How can i present my new device to windows to recognise it? Pin
Evan Gallup5-Sep-11 17:51
Evan Gallup5-Sep-11 17:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.