473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 1373
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

38
by: Grant Edwards | last post by:
In an interview at http://acmqueue.com/modules.php?name=Content&pa=showpage&pid=273 Alan Kay said something I really liked, and I think it applies equally well to Python as well as the languages...
8
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
2
by: Chandrakant Shinde | last post by:
Hi there, I want to copy a Image to the clipboard. When i try to do so following exception occurs : "The current thread must set to Single Thread Apartment (STA) mode before OLE calls can be...
3
by: archana | last post by:
Hi all, I have one confusion regarding threading in windows service which is developed in c#. What i am doing is on 'onstart' event i am starting one thread. In thread procedure i am...
7
by: archana | last post by:
Hi all, I am having application in which i am doing asynchronous call.I am using manualresetevent to wait for asynchronous call to complete. I want to stop asynchronous call after certain...
10
by: rup | last post by:
Hello, This is my first application on socket programming in vc++. I am facing problem that how to make connection to server, & make GET/POST request by HTTP. Please help me. Its urgent.......
2
by: Riaaaa | last post by:
Hello, We are doing the project in VB.Net. We had a great confusion for ASP.Net and VB.Net. Is VB.Net project performed in Microsoft Visual Studio 2005 ?? We have...
2
by: archana | last post by:
Hi all, I am having one confusion regarding hashtable. I am having function in which i am passing hashtable as reference. In function i am creating one hashtable which is local to that...
2
by: William Johnston | last post by:
Hello, I need to perform synchronous calls to a DllImport function that is asychronous. (The Dllmport function returns immediately.) So far I have a timer that waits inside a ThreadPool queue....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.