This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes Updating web services without refreshing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Updating web services without refreshing" Watch "Updating web services without refreshing" New topic

Updating web services without refreshing

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 371
When a webpage has included a webservice in it, that web service gets uopdated automatically without browser refreshing.

If browser does not refresh, then there is no request being sent from browser (client) to server. When there is no request, how does server update the webpage. That is, how does server complete request-response protocol in absence of request ? Is there a mechanism on the server side, which sends out information to all the webservice user, irrespective of rerceiving request from them ? If yes, what is this mechanism called ?

I have read about AJAX, but that also requires initiation on browser side and then that information is sent to the server. While in case of webservices, page has to be refreshed automatically in order for the web page to be kept uptodate. What iss this mechanism ,ho does itwork ?

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
Take a look at this webpage, which I hope you will find useful:
Best wishes!
I agree. Here's the link:
subject: Updating web services without refreshing