How to get the CLIENT_PERSISTENT_SSL_INFO property for JAX-WS to load certificates? (Doc ID 1296413.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version: 10.3.3 and later   [Release: and later ]
Information in this document applies to any platform.

Goal


Following the steps from http://download.oracle.com/docs/cd/E14571_01/web.1111/e13713/transport.htm#CIHICEHH using PersistentSSLInfo

The document specifies two ways of setting this info:

//Put sslInfo into requestContext for persistence, it might be required by JAX-WS advance features, such as, RM, Callback

((BindingProvider) port).getRequestContext().put(
JAXWSProperties.CLIENT_PERSISTENT_SSL_INFO, sslInfo);

//Alternatively, you can directly set a SSLSocketFactory if persistence is not necessary. Note: The following line should be omitted if sslInfo is set with above line.
((BindingProvider) port).getRequestContext().put(
JAXWSProperties.SSL_SOCKET_FACTORY,
SSLClientUtil.getSSLSocketFactory(sslInfo));

The 10.3.3.0 version of weblogic.jar has a JAXWSProperties type in it, but the CLIENT_PERSISTENT_SSL_INFO property does not exist, nor does it exist in the JAXWS RI 2.2 lib.

How to get the CLIENT_PERSISTENT_SSL_INFO property?



Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms