axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: A basic question about HTTP authentication in Axis2
Date Tue, 05 Jun 2007 15:38:59 GMT
http://www.jguru.com/faq/view.jsp?EID=239670

On 6/5/07, Wang, Hailong (NIH/CIT) [C] <wangh3@mail.nih.gov> wrote:
>
>
>
>
> Hi,
>
>
>
> After following code is added to the axis2 client, what's work flow, and who
> should verify this username and password? Thanks.
>
>           ArrayList<String> authSchemes = new ArrayList<String>();
>
> authSchemes.add(HttpTransportProperties.Authenticator.BASIC);
>
>         HttpTransportProperties.Authenticator auth = new
>         HttpTransportProperties.Authenticator();
>
>         auth.setPreemptiveAuthentication(true);
>         auth.setAuthSchemes(authSchemes);
>         auth.setUsername(username);
>         auth.setPassword(password);
>
>         client.getOptions().setProperty(HTTPConstants.AUTHENTICATE, auth);
>
>
>
>
>
>
> Hailong Wang
>
> National Database for Autism Research(NDAR)
>
> NIH/CIT/DECA (MOM CONTRACTOR)
>
> 9000 Rockville Pike, Bld 12A/Room 2027
>
> Bethesda, MD 20892
>
> Phone:  301-402-3045
>
> Fax:       301-480-0028
>
> Email:   wangh3@mail.nih.gov
>
> URL:   http://ndar.nih.gov
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message