Hi,
My ESB exposes some web services endpoint using a cxf-bc consumer
component. I would like to add basic authentication in order to force
client applications calling my web services to provide a
username/password. I tried to configure my cxf component by specifing an
cxf bus configuration but it has no effect.
Here is my configuration :
xbean.xml for cxf-bc consumer :
<cxfbc:consumer wsdl="classpath:wsdl/provider/AlarmWS.wsdl"
endpoint="AlarmWSPort"
service="alarm:AlarmWS"
targetEndpoint="AlarmCamelEndpoint"
targetService="alarm:AlarmCamelService"
busCfg="basic_auth.xml"
useJBIWrapper="false"/>
basic_auth.xml :
<http:conduit name="*.http-conduit">
<http:authorization>
<sec:UserName>firefly</sec:UserName>
<sec:Password>serenity</sec:Password>
</http:authorization>
</http:conduit>
This configuration has no effect and my services are still accessible
without username/password. Is there something missing? Is it possible to
add authentication to exposed web services (cxfbc-consumer).
Regards
William