Asynchronous Programming in Web Services

You can also employ an asynchronous call for a method on a Web service along with a synchronous call. What's special about asynchronous programming? The unique thing in asynchronous programming is that after sending the request to the Web service, the client need not wait for the request to be completed.

If a large amount of data is to be returned from a Web service, you can use the asynchronous method. This will greatly improve the application performance. The client can do any further useful execution until the result is returned from the Web service. It is imperative to note that a Web service does not have to be exclusively written to handle asynchronous requests to be called asynchronously.

When the ...

Get .NET Security and Cryptography now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.