Freeman:
    My bad.  I think we are using  cxf 2.1.4 as I put servicemix-cxf-bc
2009.01 in servicemix  lib. But it cause other people problem , so they 
rollback  to servicemix-cxf-bc 2008.01 inside is  cxf 2.1.2. So, i have 
JDK6_10  create socket which already fixed by dan like you point out.  So,
what do you think?  I did play  classpath  but  too many dependence so I
still can not figure it out.
    Thank you very much for help
     Ning  

ning_sunrise wrote:
> 
> 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-tp23982015p24074166.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to