cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: Security Interceptors Authentication
Date Wed, 31 Dec 2008 07:21:55 GMT
Hi,

BindingProvider bp = (BindingProvider)yourWSClientProxy;
bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "BJ");
bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "pswd");

Freeman

arun_rocky wrote:
> hi,  
>
>   I am using org.apache.cxf.binding.soap.interceptor.SoapHeaderInterceptor
> in my cxf.xml file for authenticating the webservice. i have created the
> webservice client for my WSDL file through the "cxf-codegen-plugin".
>
> now i have to pass the username and password through my client code. hw can
> we send it?
>
> thanks in advance
>   


Mime
View raw message