Review of Making Web Service Calls
page 14 of 17
by Wenfeng Gao
Average Rating: 
Views (Total / Last 10 Days): 78600/ 153
Article Contents:

Making Web Service Calls from Web Services: What Are Asynchronous Web Methods

Each Web method has an implementation associated with it. The ASMX handler allows a Web method being implemented either synchronously or asynchronously. Implementing a Web method synchronously means that the Web method will run on the thread that serves the request originally. The Web method DelayedResponse was implemented synchronously. Implementing a Web method synchronously also means implementing the Web method normally or as usual.


A Web method is called an asynchronous Web method if it is implemented asynchronously. Implementing a Web method asynchronously allows the thread that serves the request originally to return to the thread pool and serve other requests. This allows one more of the limited number of threads in the thread pool to execute, enhancing overall performance and scalability of the system.


A Web method can not be implemented both synchronously and asynchronously. VS.NET will throw a compiling error if you provide both a synchronous implementation and an asynchronous implementation.


Implementing a Web method synchronously or asynchronously has nothing to do with clients. Clients will see the same WSDL and proxy class regardless which way a Web method is implemented.

View Entire Article

User Comments

Title: Code example   
Name: Sean Anderson
Date: 2009-05-26 8:02:17 AM
Likewise, I would be very interested in seeing a working example of this, as I have read the article here (and the one on MSDN) both of which give a very good overview of the approach, but without a full example I am rapidly getting stuck.
Title: Great articles but...   
Name: Pascal
Date: 2009-05-21 7:38:29 AM
Same comments, great articles but would be nice to have a sample code, not that easy to try when you don't know where you going.
Title: req sample code downloadable..   
Name: Karthik
Date: 2006-01-02 1:13:44 AM
the article was a nice one.
it would be more good if sample code(downloadable) for asynchronous webservices.
can that be done?


Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-04-15 3:02:55 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search