468,110 Members | 1,835 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,110 developers. It's quick & easy.

Confusion regarding asychronous web method (Very urgent).

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
4 1184
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
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
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
>>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.

Similar topics

38 posts views Thread by Grant Edwards | last post: by
2 posts views Thread by Chandrakant Shinde | last post: by
3 posts views Thread by archana | last post: by
7 posts views Thread by archana | last post: by
2 posts views Thread by archana | last post: by
2 posts views Thread by William Johnston | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.