Solved

What is a Web service stub and callback handler do?

Posted on 2007-03-28
3
1,182 Views
Last Modified: 2007-12-19
What is a Web service stub and callback handler do?
0
Comment
Question by:yankeebushsoftware
3 Comments
 
LVL 3

Accepted Solution

by:
el_dios earned 500 total points
ID: 18813877
Web services communication is done using XMLs. Imagine creating XMLs for every request and parsing the xml file after receiving the response.

A stub makes that invisible to the user, as well as the network calls.

If our web service takes some time to continue instead of waiting for the response we can continue with the execution of the client, if we use callback handlers. when the response is received the callback handler is invoked.

Sashwat
http://tech-sash.blogspot.com
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18813891
Yes the callback handler is used for asynchronous communication with the WS.

The stub basically abstracts out the connection, communication and serialization/ de-serialization of parameters for you. You just invoke the proxy as a local class/ method and it results in a network call to the actual web service.
0
 

Author Comment

by:yankeebushsoftware
ID: 18813896
sorry mayankeagle i missed your comment, i'll give you some points next time
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now