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?
Where?s global assembly cache located on the system? Can you have two files with the same file name in GAC?
Is it right way to earn revenue through google adsense? Is it Possible?
What type of design skills do you have?
How to test iBackup and storage products?
What is an example of a web based application?
What are the different configurations which have to be considered while testing a website?
How does DTD work?
How to test Web application in which the value is changing dynamic every time and anyone can modify it?
What are the test case formats in case of a static website and dynamic website?
What is the result of “20” + 20;
What's the difference between a *.WSDL file and a *.DISCO file?
What all information does a URL contain?
I want to crate my personal website. I am having my website on webs.com which provide some space but it templete based. I want to gain free web space and plz tell me how to custmize it....plz suggest me... Thanks...
What are differences between DTDs and Schema?