473,396 Members | 1,879 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.

Calling EndXXX - Is it required and how?

Hi,

I have just implemented a reporting system for a web applicationI am responsible for where I work. It basically allows users toenter the report details, click a button and then fires off acall to an asynchronous web service that executes a storedprocedure on SQL Server as a background process.

Getting it to run is fine, but what happens if I don't call theEndXXX method once the web service (and stored procedure) havefinished. All the results are loaded into a table in thedatabase so I don't need any return values, but should I callthe EndXXX method to free up any resources or is this doneautomatically.

If I do need to call it, how should I do this. Once the reporthas been fired, the user is free to navigate around the systemto perform other tasks. This means (or so I believe) the AsyncInterface is lost and I don't want to store it in a Session. Sohow would I go about calling the EndXXX method with the correctinterface.

I am fairly new to .NET and Web Services, so hopefully I haveexplained and understood the above correctly.

Thanks for your help.

Nick.

--------------------------------
From: Nick Dodd

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>hZUPLVq2wk2ICYbCz1otNA==</Id>
Nov 23 '05 #1
1 1055
You usually specify a callback in the Async object, and in that call back,
you call the EndXXX method.

"Nick Dodd via .NET 247" <an*******@dotnet247.com> wrote in message
news:ub*************@TK2MSFTNGP10.phx.gbl...
Hi,

I have just implemented a reporting system for a web application I am
responsible for where I work. It basically allows users to enter the report
details, click a button and then fires off a call to an asynchronous web
service that executes a stored procedure on SQL Server as a background
process.

Getting it to run is fine, but what happens if I don't call the EndXXX
method once the web service (and stored procedure) have finished. All the
results are loaded into a table in the database so I don't need any return
values, but should I call the EndXXX method to free up any resources or is
this done automatically.

If I do need to call it, how should I do this. Once the report has been
fired, the user is free to navigate around the system to perform other
tasks. This means (or so I believe) the Async Interface is lost and I don't
want to store it in a Session. So how would I go about calling the EndXXX
method with the correct interface.

I am fairly new to .NET and Web Services, so hopefully I have explained and
understood the above correctly.

Thanks for your help.

Nick.

--------------------------------
From: Nick Dodd

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>hZUPLVq2wk2ICYbCz1otNA==</Id>
Nov 23 '05 #2

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

Similar topics

2
by: Tony Liu | last post by:
Hi, I want to get the name of the calling function of an executing function, I use the StackTrace class to do this and it seems working. However, does anyone think that there any side effect...
0
by: ?lafur Helgi R?gnvaldsson | last post by:
I'm building a server application which accepts socket connections and I ran into some problems. The socket is asynchronous and therefore uses the BeginXXX and EndXXX methods in the Socket class...
3
by: Webdiyer | last post by:
I want to integrate SecurID two-factor authentication system of the RSASecurity.inc into our asp.net application,but I get into trouble when trying to call the API functions of the ACE Agent,I got...
1
by: Michael S. Scherotter | last post by:
I have a proxy class derived from System.Web.Services.Protocols.SoapHTTPClient that calls a web service. Sometimes, because the call takes a longer time, I get the OLE server busy dialog. Is...
2
by: Ron Peleg, Creo | last post by:
Hi, I know you can call the WS methods using HTTP GET/POST, simply by providing the method name in the URL and appending the parameters as the method requires. However, we would like to use...
12
by: semedao | last post by:
Hi all, someone know if I can use the IAsyncResult.IsCompleted Property of IAsyncResult that return from Socket.Beginxxx methods to determine if the Endxxx method already called perior or not ? I...
4
by: Edwin Gomez | last post by:
I'm a C# developer and I'm new to Python. I would like to know if the concept of Asynchronous call-backs exists in Python. Basically what I mean is that I dispatch a thread and when the thread...
8
by: Derek Hart | last post by:
I am unclear about what all the requirements are to call a simple vb.net application, installed in the GAC, from COM (such as writing vba in Word to call the dotnet dll). I believe I have...
0
amitpatel66
by: amitpatel66 | last post by:
There is always a requirement that in Oracle Applications, the Concurrent Program need to be execute programatically based on certain conditions/validations: Concurrent programs can be executed...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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.