Hi,
I have a jaxws web service that runs over https. I need the client to use a custom TrustManager that we have implemented. I know how to do this programmatically, but I would like to be able to do this in a configuration file so I can use Spring to handle the client creation. I looked at http://cxf.apache.org/schemas/configuration/security.xsd as well as the getTrustManagers(TrustManagersType tmc) code and it does not look like this is supported. Does anyone know a work around? Are there plans to implement this functionality? Here is the code that I have that installs the custom trust manager. This is what I want to be able to do in configuration. JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); factory.setServiceClass(com.mycompany.Service.class); factory.setAddress(Configuration.getInstance().getConsoleURL()); Session.service = (com.mycompany.Service) factory.create(); Client client = ClientProxy.getClient(Session.adc); HTTPConduit http = (HTTPConduit) client.getConduit(); TLSClientParameters tls = new TLSClientParameters(); tls.setDisableCNCheck(true); tls.setTrustManagers(new TrustManager[]{new CustomTrustManager()}); http.setTlsClientParameters(tls); Thanks, John
