On Friday 10 December 2010 9:03:50 am [email protected] wrote:
> Hello,
>
> How a basic authentifiaction should be set up ?
>
> I suppose it's by using the ClientProxy but there is no documentation about
> that.
This is part of the JAX-WS spec. If you have the proxy object, you can just
do:
((BindingProvider)proxy).getRequestContext()
.put(BindingProvider.USERNAME_PROPERTY, "dkulp");
((BindingProvider)proxy).getRequestContext()
.put(BindingProvider.PASSWORD_PROPERTY, "mypassword");
to provide the credentials for the BasicAuth.
--
Daniel Kulp
[email protected]
http://dankulp.com/blog