Drew Wutka
DWUTKA at Marlow.com
Sat Dec 6 17:07:23 CST 2008
Yes, but not with ASP.NET. Classic and .NET ASP are both 'interpreters' for incoming web pages, similar to server side includes. There is nothing in these to run without an incoming web request. So you can create your own service on a web server. However, just to try and guess at what you are trying to do, if you would like something to occur with a user, without a user's interaction, you can have stuff hidden in an inline frame. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, December 06, 2008 12:22 PM To: 'Access-D - VB' Subject: [dba-VB] Is it possible to develop active ASP.NET Web Services? Hi All, ASP.NET Web Services are known to be passive IOW they are activated when called from outside, they do some work, and quit until another web request comes... ...I wonder is it possible to develop active web service, which will be activating itself once in a while (e.g. by using a kind of schedule controlled by timer + some programmatic logic)... ...that active service could be something like endlessly running/sleeping/running... between resets web service method IOW a web service method with timeout set to infinitum... ...because ASP.NET web services application is by definition multi-threaded having one thread like the questioned/requested above shouldn't be an issue for the other IMO... ...this thread could be started by outside call or even (I guess) by web service itself calling its own method with infinitum timeout on start-up *via loopback web service call not directly* or something like that... ...that questioned/requested solution should be pure ASP.NET web service one as it's planned to be used on ASP.Net hosting without access to the host operating system to run scheduled Windows Service etc... ...it could happen that questioned/requested Web Service solution is built-in ASP.NET feature: I must say I didn't investigate the docs/I didn't try to make a POC solution - I expect somebody here might have done something like that already - all I need is an answer: yes, it can be done, RTFM => {{URL}}} ... Thank you. -- Shamil P.S. Sorry, I didn't do in advance investigation - I just didn't want to get negative answer by myself - and if positive answer exists I'd be glad to share it with you, and you'll be ready for such a "tricky"/unusual (?) solution using Web Services in advance... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.