What are the various ways of accessing a web service?
Answer Posted / swapna
1. Asynchronous Call
Application can make a call to the Webservice and then
continue to do whatever it wants to do. When the service is
ready it will notify the application. Application can use
BEGIN and END method to make asynchronous call to the web
method. We can use either a WaitHandle or a Delegate object
when making asynchronous call.
The WaitHandle class share resources between several
objects. It provides several methods which will wait for
the resources to become available.
The easiest and most powerful way to implement an
asynchronous call is using a delegate object. A delegate
object wraps up a callback function. The idea is to pass a
method in the invocation of the web method. When the web
method has finished it will call this callback function to
process the result.
2. Synchronous Call
Application has to wait until execution has completed.
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
WHAT ARE THE ADVANTAGES OF DEDICTED HOSTING OVER SHARED HOSTING?
What is Webget and WebInvoke in rest service? Tell difference between them
Give me an example of how you have planned projects from start to finish. What is your development lifecycle?
what are propritory databases?
How to kill cookies from Web page?
How do you troubleshoot when a website displays '404:Page Not Found;'. what are the various steps that you take to diplay the page requested?
how to connect application to database by using the command?
what is the difference between require() and include() when an error is encountered?
What can you do to improve page performance?
what is web accessibility?
What is the result of “20” + 20;
Enlist some web testing tools.
What is Web architecture that are followed while doing online project and tell the samples of architecture?
What is the difference between relative and absolute url?
Explain how a web application works?