• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic