Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to run a secured ws client on a stand alone JVM?  RSS feed

 
Alexandre Folgueras
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone, I'm new to web services so my question is general and may seem vague to some of you:

I need to code a ws client to access a secured web service over ssl ( https ). I have the wsdl file so I was able to generate a proxy ( with Oracle jDeveloper 10.1.3 )

Now, I do not want this client to run on apache/tomacat, Oracle Application server or whatever. I want to run it on a simple jvm that I will run with the java -classpath ... command.

So, keeping in mind that it is a secured web service the client is communicating with, is it achievable? If so, I guess I will need to add to the classpath different jar files that WS needs. And what about the certs I need?

If you have any anwsers and/or documentation on this, please dont hesitate.

Thanks in advance!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WS clients talk to web services, they dont run on them.
Yes your client will have to be run with a classpath that provides the specific custom classes.
See the javax.net.ssl package for the HttpsURLConnection documentation for a start.
Bill
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!