File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Usage of Web Services In desktop Swing application

 
Sachindra Pratap
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Is there any way to manage a swing desktop application,through
web services.

regards,
Sachindra
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "manage" a desktop application? A desktop app can call a WS, but being the target of a WS call would be highly unusual (although not impossible).
 
Sachindra Pratap
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we update swing based application using web services?
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sachindra Pratap:
Can we update swing based application using web services?


Did you check out JWS?
http://java.sun.com/javase/technologies/desktop/javawebstart/index.jsp
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what JWS has to do with the actual question here but:

Can we update swing based application using web services?

If you mean can you retrieve data from web services and use that data in your Swing application then the answer is yes. If you mean something else, you'll need to provide more details.
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gregg Bolinger:
I'm not sure what JWS has to do with the actual question here but:

Can we update swing based application using web services?


By update I took it that there are going to be some code modifications/enhancements as the OP said update the application and not update the data.
In this case JWS will be one of the probable solutions.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Maneesh Godbole:


By update I took it that there are going to be some code modifications/enhancements as the OP said update the application and not update the data.
In this case JWS will be one of the probable solutions.


Not really. And we really don't know what the OP wants because they haven't responded yet. Let's wait for that before continuing to read his mind.
 
Sachindra Pratap
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually,
We are planning to develop a client service which would be running at,
client's end.Where the swing based application is running.
That swing based application has hashtable which needs to be updated through
the web services at run time.

Steps which are being performed:
1.There is database on one machine.
2.There is oneserver side web service running on server, which would be contineously pinging and retrieving the data from database.
3.And client web service would be continous ping this server web service
and update the swing based hashtables.
4. need clarification for pre requisites on running the client web service.


regards,
Sachindra
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, so the client does not run (or host) a web service, it accesses a web service that's running elsewhere. There's a wide range of possibilities for implementing this. The simplest would be to open an URL connection to the server, which then sends back structured data (possibly XML or JSON); this would amount to a RESTful approach. Using the full-blown SOAP stack and its associated APIs (SAAJ, JAX-WS) is also possible, of course. So I'd say the client side does not present a problem.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic