Hi all,
I am having one problem in web method.
I am calling one web method through windows application which is doing
some heavy processing.
while this web method is in progress i want to provide cacnel facility
through windows application.
So what i am doing is writing one property in web service for setting
cancel.
And in first web method i am continusously checking value of this
cancel variable.
but this is not working.
Can some one tell me what is wrong in it.
Or please suggest me some other alternative.
Thanks in advnace.
CaffieneRush@gmail.com - 14 Mar 2006 12:38 GMT
Web services are by default stateless.
You can persist your cancel variable in Session state (making sure you
first enable session state on your web methods) or persist state in
some other method.
pinky - 22 Mar 2006 13:39 GMT
Hi,
thanks for your reply.
i am using session variable for storing cancel flag.
but my problem is webmethod in which i am setting session variable
cancel to true is getting executed only after first one has compelted
which i don't want.
I tried with asynchronosly calling web method but of no luck.
Can you tell me how to provide cancellation through session variable as
using session variable is not working in my case.
Please help me asap.
thanks in advance.