Hi,
We have a test example to show how provide security works, [1] for more
details
[1]http://svn.apache.org/repos/asf/servicemix/smx3/trunk/deployables/bindingcomponents/servicemix-cxf-bc/src/test/java/org/apache/servicemix/cxfbc/ws/security/CxfBcProviderSecurityTest.java
Regards
Freeman
Gianfranco Boccalon wrote:
Hello,
I'm trying to use the CXF BC provider with SSL: the problem is that
the informations about SSL are not stored in the EndpointInfo, so the
HttpConduit dont use SSL.
The configuration of the provider is :
<cxfbc:provider
locationURI="https://129.6.24.109:9443/axis2/services/xdsregistryb"
service="mtom2_v_0:mtom2.End6_v_0"
endpoint="mtom2.End6_v_0"
wsdl="classpath:mtom2.End6_v_0.wsdl"
mtomEnabled="true"
busCfg="mtom2.End6_v_0bus.xml"
>
The CXF bus is:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sec="http://cxf.apache.org/configuration/security"
xmlns:http="http://cxf.apache.org/transports/http/configuration"
xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
xsi:schemaLocation="
http://cxf.apache.org/configuration/security
http://cxf.apache.org/schemas/configuration/security.xsd
http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://cxf.apache.org/transports/http-jetty/configuration
http://cxf.apache.org/schemas/configuration/http-jetty.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<http:conduit
name="{urn:eng:spagic:processes:mtom2:v0}mtom2.End6_v_0.http-conduit">
<http:tlsClientParameters secureSocketProtocol="SSL">
<sec:trustManagers>
<sec:keyStore type="JKS" password="changeit"
resource="keystore"/>
</sec:trustManagers>
</http:tlsClientParameters>
</http:conduit>
</beans>
Any suggestion ?
Regards
Gianfranco Boccalon