Consuming a Web Service Asynchronously

In the previous section, because you're calling the Web Service method directly, your page must wait for the return value before it can display the results. Most commercial Web sites don't require you to sit and wait until the page has completed its processing before displaying confirmation information.

For example, imagine a site where you register for a conference and request a hotel room for the conference at the same time. The conference site might be calling an XML Web Service provided by the hotel, and calling that Web Service might take measurable time. The conference site can't confirm your hotel room—they must have the hotel chain do this for you. Rather than forcing you to wait while the conference ...

Get ASP.NET Developer's JumpStart 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.