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. Web Development
  3. ASP.NET
  4. using Web services in a none standard way

using Web services in a none standard way

Scheduled Pinned Locked Moved ASP.NET
wcfbeta-testingtutorialquestioncode-review
4 Posts 2 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.
  • S Offline
    S Offline
    shabya
    wrote on last edited by
    #1

    hello, i allready know i can use web service by either calling a function with no postback and with postback , for example : 'void helloworld' for a no postback and 'int maxnum' with a feedback. is there a way to use the webservice as an event triggered? for example if i want to get an event triggered in my application from a webservice every time a new user logs into my website can i do it using web service ? tnx in advance avi

    C 1 Reply Last reply
    0
    • S shabya

      hello, i allready know i can use web service by either calling a function with no postback and with postback , for example : 'void helloworld' for a no postback and 'int maxnum' with a feedback. is there a way to use the webservice as an event triggered? for example if i want to get an event triggered in my application from a webservice every time a new user logs into my website can i do it using web service ? tnx in advance avi

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      No, obviously not. Because your app knows where the webservice is, the webservice does not know where your app is. And, given that it's a web app, there's no way a webservice could call it, because if it did, it would call the server, and you'd have no way to refresh the client as a result.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      S 1 Reply Last reply
      0
      • C Christian Graus

        No, obviously not. Because your app knows where the webservice is, the webservice does not know where your app is. And, given that it's a web app, there's no way a webservice could call it, because if it did, it would call the server, and you'd have no way to refresh the client as a result.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        S Offline
        S Offline
        shabya
        wrote on last edited by
        #3

        now lets say what if a web service has to 'think' about the answer to my query for more than a minute , will i have to 'stay put' and wait for the answer ? cant i get a notice that the answer is ready for me to pick it up without 'nagging' it every once and awhile ?

        C 1 Reply Last reply
        0
        • S shabya

          now lets say what if a web service has to 'think' about the answer to my query for more than a minute , will i have to 'stay put' and wait for the answer ? cant i get a notice that the answer is ready for me to pick it up without 'nagging' it every once and awhile ?

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          You can make an asyncronous call, that's what AJAX is all about.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          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