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

new to web service.

 
Tanya Sharma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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. http://download.oracle.com/javase/tutorial/deployment/webstart/security.html So this will add to unnecessary complexity.

Hope that helps.

Samarjit
 
Tanya Sharma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks

 
visuals India
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic