Asynchronous Web Method

S

Simple Simon

Hi, I'm having a little trouble with the architecture of my Web App.
Bascially, I need to import some MLS data into a SQL Db from (3)
comma-delimited files, as well as, upload and extract the images for
the MLS listings from a zip file. These things I can do, but am
worried about server time-outs.

I've read some MSDN articles about using Server-Side Asynchronous Web
Methods to perform lengthy back-end operations:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service10012002.asp

http://msdn.microsoft.com/library/d...onCreatingAsynchronousXMLWebServiceMethod.asp

I'm trying to figure out how to lay this out in my project. If I need
to have something like these ansynchronous web mehtods?

[WebMethod]
public string GetResidentialListings()

[WebMethod]
public string GetLandAndLotListings()

[WebMethod]
public string GetCommercialListings()

Then, I want to make Asynchronous Methods for each?

[WebMethod]
public IasyncResult BeginGetResidentialListings(AsyncCallback......)
[WebMethod]
public string EndGetResidentialListings(IAsyncResult......)

[WebMethod]
public IasyncResult BeginGetLandAndLotListings(AsyncCallback......)
public string EndGetLandAndLotListings(IAsyncResult......)
[WebMethod]

[WebMethod]
public IasyncResult BeginGetCommercialListings(AsyncCallback......)
[WebMethod]
public string EndGetCommercialListings(IAsyncResult......)

Then, should I have one "Master" WebMethod that calls all three?

TIA,
~Gordon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top