This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Monica Shiralkar
Ranch Hand
Posts: 861
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1376
Eclipse IDE Java
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excellent answer. Enjoy your new shiny cow.
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne



 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 861
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic