Hi Brijesh,

you need to define the busCfg on the CXF-BC component.

For example, you can use a xbean like this:

<cxfbc:consumer .... busCfg="basicAuth.xml"/>

where basicAuth.xml contains:

<?xml version="1.0" encoding="utf-8"?>
<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: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://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
">
<http:conduit name="http-conduit">
<http:authorization>
<sec:UserName>user</sec:UserName>
<sec:Password>password</sec:Password>
</http:authorization>
</http:conduit>
</beans>

Regards
JB

brijesh wrote:
hello , I need to set http authentication for servicemix cxf-bc consumer. can anybody guide me on this?


Regards
Brijesh N K

Reply via email to