Oracle使用DBWS调用SSL/HTTPS的Webservice方法
来源:互联网 发布:淘宝免单网 编辑:程序博客网 时间:2024/06/16 16:31
要求:
Web Services - Version 10.1.3.0.0 或者更高Oracle数据库版本 10.2.0.1 或者更高
概要
该文章主要介绍如何设置Oracle数据库的JVM,使UTL_DBWS可以通过HTTPS / SSL调用Web Service。
方法步骤
Note:
Please note that you will require to perform the following before generating the Web Service Client Proxy classes because to access the WSDL over HTTPS, you will need to have completed this configuration
Please note that you will require to perform the following before generating the Web Service Client Proxy classes because to access the WSDL over HTTPS, you will need to have completed this configuration
Oracle Database 10.2.x comes with JVM 1.4.2 which already contains JSSE. This spares us of adding any additional Java packages to be able to talk SSL to the Web Service.
However, to access a Web Service over SSL, UTL_DBWS will first have to read the certificate from the Web Service's Certificate Authority (CA). For this, the Database will have to import the CA certificate in it's cacerts certificate stores.
To achieve this, perform the following :
- If you are using a CA that is not already trusted by the JVM (for example when you are using a test certificate, or you have your own CA), you need to add your CA's root certificate to the keystore. The following command can be used to list the trusted certificates stored in the JVM's keystore:keytool -list -v -keystore $ORACLE_HOME/javavm/lib/security/cacerts -storepass changeit
The above command shows the command to list the certificates in the Database JVM's keystore. You might also want to see the certificates in the JRE/JDK used by Database utilities like JPublisher - these are usually located in $ORACLE_HOME/jre/1.4.2/lib/security/cacerts (JRE) and/or $ORACLE_HOME/jdk/jre/lib/security/cacerts (JDK). Note that the default keystore password is "changeit". - Get the CA's Certificate file from the server hosting the Web Service.
- To add your CA's certificate to the Database keystores, use the keytool with the -import option:keytool -import -trustcacerts -alias alias name -file <path to certificate file> -keystore $ORACLE_HOME/javavm/lib/security/cacerts -storepass <keystore password>Also, add the certificate to JPublisher's JRE and/or JDK keystores using the same command. The location of cacerts for these would be as explained in Step#1 above. You should see a confirmation message that the certificates have been successfully added to the keystores. (At this point, you might need to restart your database).
- Now you can proceed with generating your Web Service Client in the Database - see Note:838892.1 - FAQ : Oracle Database as a Web Services Client for further details on recommended ways to do this.
Note: Note that SSL Wallets are not supported by UTL_DBWS.
0 0
- Oracle使用DBWS调用SSL/HTTPS的Webservice方法
- Java调用使用SSL/HTTPS协议来传输的axis webservice服务
- Oracle EBS接口开发之通过DBWS包实现WEBSERVICE
- 调用Https WebService发布后使用时报“基础连接已经关闭: 未能为 SSL/TLS 安全通道建立信任关系”证书验证失败的解决过程(3)
- 调用加了SSL签名的WebService
- 通过SSL调用WebService
- 通过SSL调用WebService
- Python调用基于https协议的WebService
- 调用https双向认证的webservice
- Python调用基于https协议的WebService
- java客户端调用 https 的webservice
- webservice的调用方法
- 调用webservice的方法
- java调用https的webservice,https的wsdl
- cxf webservice 调用 https
- TOMCAT使用SSL(https)
- C#、VB.NET使用HttpWebRequest访问https地址(SSL)的实现方法
- 调用javax.net.ssl包去取https的页面内容
- C语言学习第五天—递归
- servlet的生命周期
- gxx_slide之城市规划
- Markdown语法的简要规则学习
- Java基础中关于多态转换异常的问题
- Oracle使用DBWS调用SSL/HTTPS的Webservice方法
- C语言学习第六天—预处理命令
- 人生感悟
- Ural 1146 Maximum Sum
- C语言学习第八天—黑马基础测试题分析
- DefiningQuery-无法更新EntitySet""……
- Android三种方法设置ImageView的图片
- 搜狗浏览器查看合法插件的方法
- C语言学习第七天—结构体