Hi,
Yeah, you can do it by adding an interceptor for your cxf bc provider outgoing interceptor chain


Map<String, Object> reqCtx = org.apache.cxf.helpers.CastUtils.cast((Map<?, ?>)message.get(Message.INVOCATION_CONTEXT)); reqCtx = org.apache.cxf.helpers.CastUtils.cast((Map<?, ?>)reqCtx.get("RequestContext"));
     reqCtx.put(BindingProvider.USERNAME_PROPERTY, "yourusername");
     reqCtx.put(BindingProvider.PASSWORD_PROPERTY, "yourpswd");

Freeman
Ola_S wrote:
Hi.
I have a <cxfbc:provider> set up nicely. With user and password
configuration in busCfg  XML-file. This works like a charm, but now I want
to dynamically set the user and password. Can I set this programatically in some way.
/O

Reply via email to