Wednesday, January 7, 2015

How To Call a SSL Secured Web Service from JDeveloper 430414.1

How To Call a SSL Secured Web Service from JDeveloper 10.1.3.x ? (Doc ID 430414.1) To BottomTo Bottom In this Document Goal Fix APPLIES TO: Web Services - Version 10.1.3.0.0 to 10.1.3.4.0 Oracle JDeveloper - Version 10.1.3 to 10.1.3.5.0 Information in this document applies to any platform. ***Checked for relevance on 26-Jan-2010*** ***Checked for relevance on 12-Oct-2012*** GOAL How to call a Web Service that is secured by SSL, and that uses certificates. You have the certificate stored in a keystore and have generated a Web Service Proxy using the wizard in JDeveloper. FIX 1. Start a new JDeveloper project and create the Web Service Proxy. 2. Right-click the project node in Application Navigator and select Project Properties ... 3. Select Run/Debug 4. Click New to create a new Run Configuration 5. Enter a name and click Ok 6. Select the new Run Configuration and Click Edit 7. On the Launch Settings page, enter the following in the java options text box -Djavax.net.ssl.trustStore="" -Djavax.net.ssl.trustStorePassword="" -Djavax.net.ssl.keyStore="" -Djavax.net.ssl.keyStorePassword="" Ensure that the Web Service provider's certificate is added in your truststore as a trusted certificate. 8. Click Ok 9. Click Ok to use the new configuration. 10. Run the application and test. NOTE: Even though it is not the purpose of this document, if an explanation is necessary on how to use the JDeveloper wizard to create a Web Service proxy, the Oracle SOA Suite Developer's Guide 10g provides a good explanation at the following URL: http://docs.oracle.com/cd/B31017_01/core.1013/b28764/web_services003.htm#CHDBABBJ For assistance with the creation and manipulation of keystores using keytool, the Java 6 SE documentation provides some guidance at the following URL: http://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html

No comments:

Post a Comment