aspose file tools
The moose likes Web Services and the fly likes (A)Synchronous web service (client) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "(A)Synchronous web service (client)" Watch "(A)Synchronous web service (client)" New topic
Author

(A)Synchronous web service (client)

Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi All,

What does it mean to asynchronously call a service ? Can anyone give real world example ?

What does it mean by "service itself can be either synchronous or asynchronous" ? Can anyone give real world example ?


Thanks & Regards,


RR Kumaran
SCJP 1.4
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Synchorous..
Commonly used in web environments. A client makes a request and waits for the response. example:
Asynchorous..
A client will send a request, disconnet, then may come later and pick up the response by supplying the given uniqueID.
I once read in Axis mailing list they have a sample on this, but cant find it now. I guess BPEL is making use of Asyn calls (have to verify).


Spritle Software Blogs
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
By the way, thanks for changing the display name
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
>>A client will send a request, disconnet, then may come later and pick up >>the response by supplying the given uniqueID

but in the first place, the server responded with uniqueId and here I see a request for uniqueId and the server responding with uniqueId and hence how can this be a asynchronous communication ?
James Clinton
Ranch Hand

Joined: Jun 23, 2003
Posts: 190
asynchronous communication


Async WS's (i.e. document/literal style web services) are able to invoke a service and carrying on processing (unlike RPC which has to wait for a response). Yes a reply is sent back but it is purely a receipt to let the client know the service received the request successfully. In some cases this reply can be ignored.

Look up Basic Callback Pattern for further information and see:
http://www-106.ibm.com/developerworks/webservices/library/ws-iuse/
www.javapassion.com/webservices/WSIUsageScenarios4.pdf

HTH
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: (A)Synchronous web service (client)
 
Similar Threads
Doubt on AXIS Handlers
Need help to explain object creation
design patterns
decoupled?
Real World Example of Singleton Pattern