By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,533 Members | 1,497 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,533 IT Pros & Developers. It's quick & easy.

Confusion regarding asychronous web method (Very urgent).

P: n/a
Hi all,

I am having one confusion regarding invoking web method of web service
asychronously through windows applicaiton.

What i am doing is i am having one long runing web method whose one way
attribute is set as i don't want any return value from that method.

What i observered is when my window application start calling web
method asynchronoysly
if i clsoe my windows application, still that web method continues its
execution.

Can some one tell me why this is happening.

And one more thing is as this web method is long running sometimes it
suddently stops without completed its exeuction.

Can some one tell me reason behind above two problem.

Please help me asap as it is very very urgent for me.

Thanks in advance.

May 8 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
hi archana,

can you post the code used to invoke the async call?

my guess as to why the method still runs is because of the multi
threading model of a windows app, wheron all async calls are handled by
seperate threads. So if you want the method to complete and then
terminate, try using the System.Threading namespace to better manage
your async calls.

The above solution will not be applicable in all cases. In order to
help you a little more, show the code used.

May 10 '06 #2

P: n/a
Hi,

Thanks for ur reply.

I think you are not getting my question completely.

I am invoking method of webservice through windows application
asynchronosuly.

As web service is stateless once client started that method will that
method cause any problem if client application is close.

If you can clear my confusion it will be really helpful for me.

Thanks

May 11 '06 #3

P: n/a
The web method runs on the web server. Even if you shut down your computer,
the web server still runs what you asked for previously.

I would investigate server side. There is likely some kind of errors that
get unnoticed (do you have an error log ?). It could be also some kind of
timeout ?

--
Patrice

"archana" <tr**************@yahoo.com> a écrit dans le message de news:
11**********************@g10g2000cwb.googlegroups. com...
Hi all,

I am having one confusion regarding invoking web method of web service
asychronously through windows applicaiton.

What i am doing is i am having one long runing web method whose one way
attribute is set as i don't want any return value from that method.

What i observered is when my window application start calling web
method asynchronoysly
if i clsoe my windows application, still that web method continues its
execution.

Can some one tell me why this is happening.

And one more thing is as this web method is long running sometimes it
suddently stops without completed its exeuction.

Can some one tell me reason behind above two problem.

Please help me asap as it is very very urgent for me.

Thanks in advance.

May 12 '06 #4

P: n/a
>>I am invoking method of webservice through windows application
asynchronosuly.
that is the answer to your question.
As web service is stateless once client started that method will that
method cause any problem if client application is close.
No. In normal cases this should not cause a problem in an async call.
And one more thing is as this web method is long running sometimes it
suddently stops without completed its exeuction.


look at the error logs for any exceptions or problems faced by the
service method. If possible, you could show a copy of the error log
with your problem, might be able to help further.

May 12 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.