Hi Jim,

no you can add authentication by configuration via the busCfg attribute.

You can use a xbean.xml like this:

<cxfbc:provider wsdl="classpath:my.wsdl"
        locationURI="http://0.0.0.0:8192/my";
        service="my"
        endpoint="endpoint"
        busCfg="basic_auth.xml"/>

where basic_auth.xml looks like:
<http:conduit>
        <http:authorization>
                <sec:UserName>user</sec:UserName>
                <sec:Password>password</sec:Password>
        </http:authorization>
</http:conduit>

Regards
JB

Jim Talbut wrote:
Hi,
I need to proxy web services with an almost identical web service that offers additional facilities.
One of the additional facilities is HTTP basic authentication.
To try to be clear: the actual implementation of the web service has no 
authentication, but the web service used by clients must have it.
I can't find any way to configure the CXF BC to do this.
The book Open Source ESBs in Action describes a code way to do it - is this the 
only option?
Thanks Jim

Reply via email to