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

asynchronous asp.net

could somebody show me how to asynchronously call some methods from a web
service? I'm kind of fuzzy on delegates, IAsyncResult, etc...

1. web service is being called by outside source
2. web service calls method "startProcessing" in business layer
a. fires off asynchronous method querying database and generating
reports
3. method "startProcessing" returns a string indicating that report
generation was started successfully.
4. outside source may come back to query the status of the report generation
(I would probably look at the db for that information) but not essential.

some pseudo code with the important elements would be great!

Thanks!
Nov 18 '05 #1
2 1150
you web service has two method calls

startProcessing, which validates the input, starts a thread to do the work,
then returns
checkStatus, which returns the status of the process, and if done, the
results
note: to prevent denial of service attacks, you should use a pool of threads
and track the number of concurrent requests.

-- bruce (sqlwork.com)


"Alex Wagner" <gb*****@hot-nospam-mail.com> wrote in message
news:uO**************@TK2MSFTNGP12.phx.gbl...
could somebody show me how to asynchronously call some methods from a web
service? I'm kind of fuzzy on delegates, IAsyncResult, etc...

1. web service is being called by outside source
2. web service calls method "startProcessing" in business layer
a. fires off asynchronous method querying database and generating
reports
3. method "startProcessing" returns a string indicating that report
generation was started successfully.
4. outside source may come back to query the status of the report generation (I would probably look at the db for that information) but not essential.

some pseudo code with the important elements would be great!

Thanks!

Nov 18 '05 #2
would you have code samples for that?
"bruce barker" <no***********@safeco.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
you web service has two method calls

startProcessing, which validates the input, starts a thread to do the work, then returns
checkStatus, which returns the status of the process, and if done, the
results
note: to prevent denial of service attacks, you should use a pool of threads and track the number of concurrent requests.

-- bruce (sqlwork.com)


"Alex Wagner" <gb*****@hot-nospam-mail.com> wrote in message
news:uO**************@TK2MSFTNGP12.phx.gbl...
could somebody show me how to asynchronously call some methods from a web service? I'm kind of fuzzy on delegates, IAsyncResult, etc...

1. web service is being called by outside source
2. web service calls method "startProcessing" in business layer
a. fires off asynchronous method querying database and generating
reports
3. method "startProcessing" returns a string indicating that report
generation was started successfully.
4. outside source may come back to query the status of the report

generation
(I would probably look at the db for that information) but not essential.
some pseudo code with the important elements would be great!

Thanks!


Nov 18 '05 #3

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

Similar topics

6
by: ... | last post by:
Does anyone know a good tutorial on asynchronous programming in .net AsyncCallback And IASyncResult are driving me crazy. And the msdn documentation is not really helpful on this topic I...
1
by: Noel | last post by:
Hi, I am a tad confused about if there are any benefits from using asynchronous vs synchronous network communication. As my example, I have been writing a dns lookup stack with a network...
2
by: Leo | last post by:
Version 7 fixpack 9, aix 5.1 In our database we have a table that that has a dedicated bufferpool for the data, and another for indexes. Actually we have three of these combinations and they...
1
by: Natalia DeBow | last post by:
Hi, I am working on a Windows-based client-server application. I am involved in the development of the remote client modules. I am using asynchronous delegates to obtain information from...
1
by: Julian Hershel | last post by:
Reading about asynchronous programming (ms-help://MS.NETFrameworkSDK/cpguidenf/html/cpconasynchronousdesignpatterno verview.htm) I could not clarify some doubts. Hope you can help me. 1) Are...
3
by: usenetaccount | last post by:
In a newly created test app, to maximize client performance I tried to make two SOAP method calls in tandem (the soap methods execute some specified query), as each call includes a large amount of...
1
by: dba123 | last post by:
I need to perform Asynchronous Inserts using DAAB. So far I have a method which does an insert but how can I do this Asyncronously so that it does not affect the load on our public production...
0
by: Bishoy George | last post by:
Hi, I have a asp.net 2.0 web application. I want to implement the asynchronous model through http handler in web.config ...
4
by: Morgan Cheng | last post by:
Since ASP.NET 2.0, asynchronous web service client can be implemented with event-based pattern, instead of original BeginXXX/EndXXX pattern. However, I didn't find any material about event-based...
2
by: Nicolas Le Gland | last post by:
Hello everyone here. This is my first post in this newsgroup, I hope I won't be to much off-topic. Feel free to redirect me to any better group. I am getting strange timing issues when...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.