I have seen several discussions around this, but nothing clear programatically. I want to be able to use the JaxWsProxyFactoryBean to create my client for use in an acceptance test.
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); factory.getInInterceptors().add(new LoggingInInterceptor()); factory.getOutInterceptors().add(new LoggingOutInterceptor()); factory.setServiceClass(UserAdd.class); factory.setAddress("https://localhost:8443/user-manager/services/userAdd"); UserAdd client = (UserAdd) factory.create(); How do I inject, via java not spring, my own trust implementation that will allow self-signed or possibly invalid certificates)? I tried providing my own implementations of the following, but this doesn't seem to be picked up by the CXF proxy factory. SSLContext sc = SSLContext.getInstance("SSL"); sc.init(null, trustAllCerts, new java.security.SecureRandom()); HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory()); HttpsURLConnection.setDefaultHostnameVerifier(hv); Any pointers to accomplish this correctly? -- View this message in context: http://www.nabble.com/jaxws-ssl-client-that-accepts-all-certificates-tp16826257p16826257.html Sent from the cxf-user mailing list archive at Nabble.com.