Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

When would you use get and post requests?

884


What are Firewalls how they are used for testing the webapplications?

2132


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.

1816


in companies what is the use of websphere?

2475


What is the result of “20” + 20;

961


What is an example of a web based application?

837


Define https.

1016


What is a Simple Element?

940


How does CGI work? Can I use 'C' language to write a CGI?

2209


Can we use data reader object in webservices?

978


How to kill cookies from Web page?

1942


Give some examples of web applications that are used in our day to day life.

1039


Can you get a virus from website?

854


What's the difference between a *.WSDL file and a *.DISCO file?

3496


How to test whether the navigation i.e. from one page to another is working r not using QTP for web based application

1719