Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / May 2006

Tip: Looking for answers? Try searching our database.

Confusion regarding asychronous web method (Very urgent).

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
archana - 08 May 2006 10:18 GMT
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.
dhanvanth@gmail.com - 09 May 2006 18:40 GMT
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.
archana - 11 May 2006 11:21 GMT
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
dhanvanth@gmail.com - 12 May 2006 18:44 GMT
>>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.
Patrice - 12 May 2006 12:17 GMT
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 ?

Signature

Patrice

> Hi all,
>
[quoted text clipped - 19 lines]
>
> Thanks in advance.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.