Hello,
I have a problem concerning conduit customization and could not find any hint
in the documentation that could help me.
I am trying to implement a prototype where a cxf client's SSLSocketFactory is
replaced with a custom one.
I am setting the
conduit.getTlsClientParameters().setSSLSocketFactory(customSSLSocketFactory)
just before the service invocation and it does not have any effect.
The SSL socket factory used is another one, as no threaddumps are done as it is
implemented in all the methods of the custom one.
Here is the code:
private SSLSocketFactory customSSLSocketFactory = new SSLSocketFactory() {
@Override
public Socket createSocket() throws IOException {
Thread.dumpStack();
return null;
}
//...THE SAME Thread.dumpStack(); within all other methods
};
@Override
protected void service(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
ServiceNowSoap localServiceNowSoap = (ServiceNowSoap)
context.getBean("GetAllActiveSites");
Client client = ClientProxy.getClient(localServiceNowSoap);
HTTPConduit conduit = (HTTPConduit) client.getConduit();
conduit.getTlsClientParameters().setSSLSocketFactory(customSSLSocketFactory);
localServiceNowSoap.getSites(null, null, null);
res.getWriter().println("OK");
}
I would be much grateful is some could give me a hint how to proceed.
Thanks a lot,
Daniel