Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Create a web service to push messages to clients

Create a web service to push messages to clients

Scheduled Pinned Locked Moved C#
wcflounge
22 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N nitin_ion

    Thanks, this is correct. I just looked at some articles and accordingly if we use basichttpbinding we cannot create duplex service but with wshttpbinding we can. but with it then we need to make sure that ports, firewall issues are taken care of on client machine. I am not sure but there should be some way using using basichttpbinding by which i can create callback methods.

    realJSOPR Offline
    realJSOPR Offline
    realJSOP
    wrote on last edited by
    #21

    You obviously don't have even the most rudimentary understanding of the mechanics of a web service. Once more, a web service is a request/response system, and nothing more. If you want to "push" data somewhere, you cannot do it with a *web* service. If you want to push data without it being requested, your best bet is to use a *windows* service that listens for connections, and broadcasts the data (via WCF or some other transport mechanism) to any client that might be listening and that knows how to interpret and react to the data being pushed.

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

    1 Reply Last reply
    0
    • N nitin_ion

      I want to create a web service for a chat application which will instead of Request/response model use push model. Client app will be notified of a new message, user logged in etc.. by the web service. Does anyone have know where to start any good article with basic knowledge for creating such push web services.

      J Offline
      J Offline
      John Y
      wrote on last edited by
      #22

      You could always have a little node.js server up and running, and when various client actions occur (log on, etc), it sends a message to your node.js server, which would then broadcast another (push) message. And then the client "listener" js file on your front end could handle the pushed message in whatever way you see fit. And basically any active client node would accept the message/action.

      ________ John Y. Developer

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups