Hi:
    I try do some flow like following    soap-->servicemix cxf bc (with ws
security) -->servicemix cxf-se->servicmeix cxf-bc-provider --> external web
service.

    The connection  between  servicmeix cxf-bc-provider --> external web
service is ssl.
     My problem is  we can not handle the ssl  by using java
keystore/truststore file. We have to write our customize TrustManager, we
want to  add code like following before we sent out soap request to external
ws.
       
   JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); 
   factory.setServiceClass(com.mycompany.Service.class); 
   factory.setAddress(external ws url); 

    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 MyCustomTrustManager()}); 

     http.setTlsClientParameters(tls); 

     ............

     I can make the code work outside servicemix.
     Does anyone know how to do it in servicemix BC or a  working around?  

     Thanks
      Ning

     
-- 
View this message in context: 
http://www.nabble.com/customize-cxf-provider-to-support--customize-Trust-Manager-tp23982015p23982015.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to