wood burning stoves
The moose likes Web Services and the fly likes why is the term asynchronous web service used because web services are always asynchronous only? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "why is the term asynchronous web service used because web services are always asynchronous only?" Watch "why is the term asynchronous web service used because web services are always asynchronous only?" New topic
Author

why is the term asynchronous web service used because web services are always asynchronous only?

Monica Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 778
I have read the term asynchronous web services. I do not understand why is this term asynchronous web service used because web services are always asynchronous only?

thanks
Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 1340

Not able to understand your question .. may there is a typo error there ...
Web Services can be synchronous or asynchronous.
Synchronous WS follows normal request - response model where client makes a request to Server and then waits till Server return response back in Client.
Asynchronous WS do not follow normal request - response model. Here, client makes a request to Server and then continue to work on next work. After a while , Server response back to Client with it's Response.

Asynchronous WS can use polling or callback mechanism to receive response back from Server.

You might think that this Asynchronous Web service closely similar to JMS Queues. Difference is Asynchronous Web service deals more with Transport layer (how messages are transport from Client to serve and vice-versa) where JMS system is full fledged messaging system which manages messages are application layer of TCP IP.

~ abhay


Oracle certified Java 8 Programmer I (1Z0-808), Oracle Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I, CIW Certified Ecommerce specialist
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32481
    
214

Excellent answer. Enjoy your new shiny cow.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 1340

Thanks Jeanne



Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 1340

Here is another link from Coderanch where in I have presented an example of Asynchronous web service call

http://www.coderanch.com/t/625876/Web-Services/java/Making-Asynchronous-Web-Service-Calls#2864064
Monica Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 778
Yes there was a typing mistake too. I thought all web services are synchronous only but now let me explore the asychronous web services and its difference with JMS.

Thanks
 
Have you checked out Aspose?
 
subject: why is the term asynchronous web service used because web services are always asynchronous only?
 
jQuery in Action, 3rd edition