my dog learned polymorphism
The moose likes Web Services and the fly likes new to web service. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "new to web service." Watch "new to web service." New topic

new to web service.

Tanya Sharma

Joined: Oct 27, 2010
Posts: 10
I am new to Web services and not sure where to start.
So I have an external Swing application that launches by "Java Web Start" button.
This web start button is in a JSP page.
I already have a web service for my application but I am not sure how to use it.
As in, how should I call it from my swing application which is on the client side.

Thanks for help
samarjit samanta

Joined: Nov 07, 2010
Posts: 9
Are you using swing which is again launched by Java web start/JNLP just to be able to call web services? or do you want to show some GUI or some processing in client machine which is not possible in server side?
If it is former then try posting your reply back to server and let the server call web service for you.

That was just a suggestion, but more importantly there would not be any difference between code which invokes Web Service from server and code which invokes from swing. This is because Web Service clients can be written in J2SE and transport protocol can be TCP. So its basically the same thing calling it from swing or server.

Using java web start has some implications regarding security. It may be restricted to open socket connection to some other IP/domain other than the one which originated this swing application. So this will add to unnecessary complexity.

Hope that helps.

Tanya Sharma

Joined: Oct 27, 2010
Posts: 10
Thanks for the reply

I want to show a GUI on client machine. This GUI generates an XML which I need to pass to the server.

Can you give me some sample code or some URL to a tutorial which shows how to invoke a web service from the client application.
I am not sure how to use an existing web servie. I have the WSDL for it. Jus need this client application to call that web service.

I understand what you are saying about JAVA web start. Is there any other way I can launch the GUI?


visuals India

Joined: Nov 16, 2010
Posts: 1
Hi Thanks for posting and my doubt clearly this thread... i am new in jave and now i start to new projects, please let you help me how to start it....
I agree. Here's the link:
subject: new to web service.
It's not a secret anymore!