cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: basic authentication in cxf webservice client
Date Mon, 01 Feb 2010 20:12:57 GMT
On Mon February 1 2010 10:37:06 am SaravananRamamoorthy wrote:
> Hi All,
> 
> I have generated webservice client using cxf wsdl2java.
> 
> The webservice requires basic authentication.
> 
> How do I pass basic authenticatin to webservice client using cxf.
> 
> Can we use BindingProvider class for this.

Yep.   The BindingProvider has keys for both the username and the password.   
Just set those on the RequestContext and it should be all set.

Dan


> 
> Regards
> Saravanan R
> 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Mime
View raw message