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. WebService send message to clients

WebService send message to clients

Scheduled Pinned Locked Moved C#
databasequestionannouncement
3 Posts 3 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.
  • B Offline
    B Offline
    brunoconde
    wrote on last edited by
    #1

    I'm a beginer in WebServices. I need to interact my WebService with a DataBase and the clients of the WebService. Because I'm the administrator of DB I need to send to WebClients, of the WebService, updated information on tables, datasets ... For this i need to known from my WebService Witch clients are connected at some time. How can i update clients information without they hask for none? thank's. Bruno Conde. ;)

    N H 2 Replies Last reply
    0
    • B brunoconde

      I'm a beginer in WebServices. I need to interact my WebService with a DataBase and the clients of the WebService. Because I'm the administrator of DB I need to send to WebClients, of the WebService, updated information on tables, datasets ... For this i need to known from my WebService Witch clients are connected at some time. How can i update clients information without they hask for none? thank's. Bruno Conde. ;)

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      There are many articles covering web services, here on CP and on MSDN. Check out the articles posted here[^] on web services written in C#. - Nick Parker
      My Blog | My Articles

      1 Reply Last reply
      0
      • B brunoconde

        I'm a beginer in WebServices. I need to interact my WebService with a DataBase and the clients of the WebService. Because I'm the administrator of DB I need to send to WebClients, of the WebService, updated information on tables, datasets ... For this i need to known from my WebService Witch clients are connected at some time. How can i update clients information without they hask for none? thank's. Bruno Conde. ;)

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        Actually, that's not even possible. XML Web Services are invoked over HTTP, which is - by nature (and it's very protocol) - client request / server response driven. A server cannot contact a client; only a client can make requests on the server, in which case the server (should) respond. If you need a "net send" equivalent take a look at the .NET Remoting Overview[^]. You'll want to use a channel that is not HTTP-based, like the TcpChannel. The clients will still need to connect to the server (like a chat application), but they can stay connected and the .remoted object (on the remoting server) can send the connected clients data or even invoke requests on the client, instead of only the clients being able to invoke methods on the server. The .NET Framework 1.x provides the HttpChannel and TcpChannel, and 2.0 will add an IpcChannel. Channels - like formatters - are extensible. Here on CodeProject someone even posted a channel using MSMQ (Microsoft Message Queue) server. Nifty. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]

        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