Hi Freeman:
   I did not try smx 3.3.1 as other people in team and product manager again
upgrade smx.
   I did try download the two java files to fix socket problem from Dan ,
build on my machine, use out put classes and  configure  <classpath
inverse="true"> .... . It looks I overcome the socket problem, but I get
another problem say "PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target", I think this new problem
caused by I did not set trust store/keystore. But our cert  store in
database not in JKS file.  So, we  can not use standard configuration. 
    Now I think I have to create my own BC, but  my maven do not have the
plugins in  servicemix tutorial need and my company did not want upgrade the
maven plugin. So, I will try to call  my external web service from cxf se or
jsr181 se and see what happen.
    Thank very much. You are so good.
     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-tp23982015p24091901.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to