Enable SSL in JDeveloper webservice proxy client???
444742Dec 22 2006 — edited Jul 20 2007Hi,
I developed a Web Service proxy client to invoke a web service on SSL. First I'm testing with OC4J 10.1.3.1 and JDEV 10.1.3.1 and did this:
1) Developed a basic PL/SQL Web Service with JDEV and published on my standalone OC4J.
2) Made a test with a browser, it worked OK
3) Generated a proxy client from JDev 10.1.3.1 to invoke web service, it worked OK
--- To make it work on SSL : ----
4) Then, added SSL configuration to oc4j , generated a certificate with keytool (updated server.xml, secure-web-site.xml) before shutting down and starting the OC4j instance.
5) Imported the certificate to JAVA_HOME/jre/lib/security/cacerts
6) Tested web service from browser on https and worked OK.
7) When tried to modified proxy client (generated in step 3) to make it work on SSL, I realized that just changing the END_POINT to the new url (https) it worked!
Questions----
1.- By default the proxy client generated from JDEV 10.1.3.1 knows how to manage SSL conections?
2.- If I dont have previously the server certificate to import it into JAVA keystore (cacerts) how could I ,from proxy client code, capture it and import it -programatically- before the validation occurs... because if the certificate is not in keystore , the program fails.
Thanks in advance
J.