473,398 Members | 2,165 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,398 software developers and data experts.

how to use asynchronous calls in asmx

Hi

Can any one let me know how i can perform a Asychronous calll in a web
service ?

or using a thread in Asmx a better solution than the async call ?

pls send me any link to example, where i can get this answer..

Thanks
Senthil
May 11 '06 #1
5 4352
Try :
http://msdn.microsoft.com/library/de...rogramming.asp

What do you want to call asynchronously from your web service ? (or do you
meant you want to call your webservice asynchronously).
--

"SenthilVel" <se******************@misyshealthcare.com> a écrit dans le
message de news: eI**************@TK2MSFTNGP03.phx.gbl...
Hi

Can any one let me know how i can perform a Asychronous calll in a web
service ?

or using a thread in Asmx a better solution than the async call ?

pls send me any link to example, where i can get this answer..

Thanks
Senthil

May 11 '06 #2
hi ,
what i want to do is :

1. My client calls my asmx webservice --here i need to send a message back
saying "i have started your request".This is the first return
2. secondly i need to complete the job what my asmx is intended to so and
send the status of the job back to my client.

Thanks
Senthil
"Patrice" <sc****@chez.com> wrote in message
news:uO**************@TK2MSFTNGP03.phx.gbl...
Try :
http://msdn.microsoft.com/library/de...rogramming.asp

What do you want to call asynchronously from your web service ? (or do you
meant you want to call your webservice asynchronously).
--

"SenthilVel" <se******************@misyshealthcare.com> a écrit dans le
message de news: eI**************@TK2MSFTNGP03.phx.gbl...
Hi

Can any one let me know how i can perform a Asychronous calll in a web
service ?

or using a thread in Asmx a better solution than the async call ?

pls send me any link to example, where i can get this answer..

Thanks
Senthil


May 11 '06 #3
I'm still not sure to fully understand what you expect from this scheme.
Keep in mind that under normal circumstances a web service is based on a
request/response pair i.e. each response should be issued in response to a
client request.

Also I'm not sure to understand what benefit you expect from your first
call...

So basically it would give us :

1) you could just display client side that processing has started and then
call the web service once.

2) a variation would be to use an asynchronous call to your service (I
believe Begin<Method> would fail in case if this is what you are after) and
you could additionaly perform client side some other things while the
service is running.

I would choose one of those two schemes.

Extreme solutions would be :

3) to have a pair of calls one submitting a job (possibly returning a job
id) and the other triggering the actual execution.

4) you could even have a client side service that the web service could call
once done.

But I would really double check the reason for this first call before trying
to do so...

--
Patrice

"SenthilVel" <se******************@misyshealthcare.com> a écrit dans le
message de news: uF**************@TK2MSFTNGP02.phx.gbl...
hi ,
what i want to do is :

1. My client calls my asmx webservice --here i need to send a message
back saying "i have started your request".This is the first return
2. secondly i need to complete the job what my asmx is intended to so and
send the status of the job back to my client.

Thanks
Senthil
"Patrice" <sc****@chez.com> wrote in message
news:uO**************@TK2MSFTNGP03.phx.gbl...
Try :
http://msdn.microsoft.com/library/de...rogramming.asp

What do you want to call asynchronously from your web service ? (or do
you meant you want to call your webservice asynchronously).
--

"SenthilVel" <se******************@misyshealthcare.com> a écrit dans le
message de news: eI**************@TK2MSFTNGP03.phx.gbl...
Hi

Can any one let me know how i can perform a Asychronous calll in a web
service ?

or using a thread in Asmx a better solution than the async call ?

pls send me any link to example, where i can get this answer..

Thanks
Senthil



May 11 '06 #4
the client need to poll for the request to be completed, the server can not
send to the client. so on the first request, you start a thread to process
the request. then the client on a timer, calls to see if its done.

some issues to address

1) how to identity the work in process - use some sort of ticket token
2) how to store the resuslt of the processing
3) what if the client never calls back to check results
4) controlling how many requestes can be processed at the same time.
5) error handling of the background threads.

-- bruce (sqlwork.com)

"SenthilVel" <se******************@misyshealthcare.com> wrote in message
news:uF**************@TK2MSFTNGP02.phx.gbl...
hi ,
what i want to do is :

1. My client calls my asmx webservice --here i need to send a message
back saying "i have started your request".This is the first return
2. secondly i need to complete the job what my asmx is intended to so and
send the status of the job back to my client.

Thanks
Senthil
"Patrice" <sc****@chez.com> wrote in message
news:uO**************@TK2MSFTNGP03.phx.gbl...
Try :
http://msdn.microsoft.com/library/de...rogramming.asp

What do you want to call asynchronously from your web service ? (or do
you meant you want to call your webservice asynchronously).
--

"SenthilVel" <se******************@misyshealthcare.com> a écrit dans le
message de news: eI**************@TK2MSFTNGP03.phx.gbl...
Hi

Can any one let me know how i can perform a Asychronous calll in a web
service ?

or using a thread in Asmx a better solution than the async call ?

pls send me any link to example, where i can get this answer..

Thanks
Senthil



May 11 '06 #5
I definetly recommend using an async call. This is a pretty good
example.

http://www.codeproject.com/cs/webser...cecallback.asp

HTH,
Curt

May 11 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: foldface | last post by:
Hi I've been using ajax with static methods, if you use ajax on a non static method I belive it constructs an instance of the class necessary at runtime. How does the new asynchronous calls in...
5
by: rgarf | last post by:
I have a C++ application that consumes a web service. I would like to call the web service asynchronously so my C++ application can do other processing in between. My proxy file does not have any...
2
by: don_spam | last post by:
Hi all, sorry if this is an over simple question but google isn't coming through for me. So I have a class that processes the data in an excel file, entering the info row by row into our...
0
by: napssav | last post by:
Hello, I am trying to implement an out SOAP header in a web service function (that is, a SoapHeader with Direction=SoapHeaderDirection). It works fine when I call it synchronously, but...
3
by: intrader | last post by:
What I have is a class A with a method Foo. I would like to create a thread that instances A and then calls Foo asynchronously while performing other duties. I think that the solution is to...
0
by: =?Utf-8?B?Y2tv?= | last post by:
Hi there, does anyone have an idea? We wrote a small C# program that uses asynchronous calls to wmi to retrieve data from networked computers. If the OS is windows XP SP2 it doesn't matter whether...
1
by: jan.loucka | last post by:
I'm developing WinForms application in .NET 2.0 that talks to web service. The automatically generated proxy (reference class) has got methods for both synchronous and asynchronous invocations of...
1
by: jan.loucka | last post by:
I'm developing WinForms application in .NET 2.0 that talks to web service. The automatically generated proxy (reference class) has got methods for both synchronous and asynchronous invocations of...
1
by: sindhurasingeetham | last post by:
Hi, I'm new to coding in .NET. I am trying to do an asynchronous call in my code using httpwebrequest. This code works perfectly fine on one server, but does not work on another. The main flow...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.