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
When would you use get and post requests?
What are Firewalls how they are used for testing the webapplications?
Suppose there are two requests for 2 different pages of same site and from 2 different browsers, How Web server recognise the different request and send result to the exact sender browsers.
in companies what is the use of websphere?
What is the result of “20” + 20;
What is an example of a web based application?
Define https.
What is a Simple Element?
How does CGI work? Can I use 'C' language to write a CGI?
Can we use data reader object in webservices?
How to kill cookies from Web page?
Give some examples of web applications that are used in our day to day life.
Can you get a virus from website?
What's the difference between a *.WSDL file and a *.DISCO file?
How to test whether the navigation i.e. from one page to another is working r not using QTP for web based application