[dba-VB] Is it possible to develop active ASP.NET Web Services?

Shamil Salakhetdinov shamil at smsconsulting.spb.ru
Mon Dec 29 07:28:59 CST 2008

Hi Gustav,

Yes, Windows Workflow Foundation and ManualWorkflowSchedulerService seems to
be the answer on my question.

Thank you.


-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: Friday, December 26, 2008 1:47 AM
To: dba-vb at databaseadvisors.com
Subject: Re: [dba-VB] Is it possible to develop active ASP.NET
<http://asp.net/>  Web Services?

Hi Shamil

I recalled your question when I read up on Windows Workflow Foundation.
To recap, this includes four services:

Persistence Services
Persistence services can be used to save a workdlow instance to a data
store if a workflow contains a long-running process.

Transaction Services
You can use transaction services to ensure your data consistency in the
event of communication or other failure.

Tracking Services
Tracking services can be used to record which activities will execute
in each workflow instance.  They can also record when each activity
Use tracking services to troubleshoot or debug workflows.

Scheduling Services
Scheduling services can be used to control how a workflow runtime
creates threads for the instances of your workflow.

Of these Scheduling Service (and Persistence Service?) perhaps could
solve your task (quote):

You may host your workflow in a server-based host application, such as
an ASP.NET <http://asp.net/>  Web application or Web service. These host
donate a thread to the workflow instance, so that the instance remains
synchronized with the application. To use this thread, utilize the
ManualWorkflowSchedulerService instead of the

That might save you from reinventing the wheel or spending time on some
proprietary system ...


>>> shamil at smsconsulting.spb.ru 06-12-2008 19:22 >>>
Hi All,

ASP.NET <http://asp.net/>  Web Services are known to be passive IOW they are
called from outside, they do some work, and quit until another web

...I wonder is it possible to develop active web service, which will
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
service method with timeout set to infinitum...

...because ASP.NET <http://asp.net/>  web services application is by
having one thread like the questioned/requested above shouldn't be an
for the other IMO...

...this thread could be started by outside call or even (I guess) by
service itself calling its own method with infinitum timeout on
*via loopback web service call not directly* or something like that...

...that questioned/requested solution should be pure ASP.NET
<http://asp.net/>  web
service one
as it's planned to be used on ASP.Net hosting without access to the
operating system to run scheduled Windows Service etc...

...it could happen that questioned/requested Web Service solution is
built-in ASP.NET <http://asp.net/>  feature: I must say I didn't investigate
the docs/I
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
RTFM => {{URL}}} ...

Thank you.


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
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://www.databaseadvisors.com <http://www.databaseadvisors.com/> 

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3225 (20080629) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com <http://www.eset.com/> 

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3225 (20080629) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com <http://www.eset.com/> 


More information about the dba-VB mailing list