using Web services in a none standard way
-
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
-
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
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.
-
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.
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 ?
-
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 ?
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.