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
Have you ever used more than one external style sheet and if so, how did you use it?
What all information does a URL contain?
What type of design skills do you have?
Explain how a web application works?
Can you save a website to your desktop?
Enlist some sub-classes of http response objects?
what is the difference between weblogic and websphere,jboss,tomcat?
what are propritory databases?
How does CGI work? Can I use 'C' language to write a CGI?
How to create virtual directory in IIS?
Who are the founders of YAHOO & GOOGLE?When they founded?
What are the different configurations which have to be considered while testing a website?
What is the role of usability testing in web testing?
Difference between display none and visibility hidden ?
How can you test the security of a Web site,both manually and by using a tool?