File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Regarding Usage of Web Services In desktop Swing application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Regarding Usage of Web Services In desktop Swing application" Watch "Regarding Usage of Web Services In desktop Swing application" New topic
Author

Regarding Usage of Web Services In desktop Swing application

Sachindra Pratap
Ranch Hand

Joined: Jun 03, 2008
Posts: 42
hi,
Is there any way to manage a swing desktop application,through
web services.

regards,
Sachindra
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41500
    
  53
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).


Ping & DNS - my free Android networking tools app
Sachindra Pratap
Ranch Hand

Joined: Jun 03, 2008
Posts: 42
Can we update swing based application using web services?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10248
    
    8

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


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10248
    
    8

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

Joined: Jul 11, 2001
Posts: 15299
    
    6

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

Joined: Jun 03, 2008
Posts: 42
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
Marshal

Joined: Mar 22, 2005
Posts: 41500
    
  53
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
 
subject: Regarding Usage of Web Services In desktop Swing application