To use basic authentication, you have to set up the username and password in
your call object on the client side, like so:

        Service  service = new Service();
        Call call = (Call) service.createCall();
        call.setUsername("username" );
        call.setPassword("Password");

This will set the http headers for basic authentication. As far as the jdbc
realm goes, that is a function of your webserver. Tomcat supports a
jdbcrealm implementation, and i believe there is a mod_ldap for apache. The
username can be aquired through the message context, as follows:

        MessageContext msgContext = MessageContext.getCurrentContext();
        String username = msgContext.getUsername();



-----Original Message-----
From: Andrea Fabris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 5:58 AM
To: [EMAIL PROTECTED]
Subject: Basic Authentication and Axis


Hello to everybody.

I checked this question on the archive bu i didn't find anything so i
post...

I want to use basic authentication to access an axis service, i'd like also
to match the user/pwd on a database (like jdbcrealm). Also i want to have
the username that logged in readable by the service so i can do more work in
the service based on the profile of the user who logged in.

It's possible to do this? Otherwise, which kind of authentication i have to
use?

Thanx
Andrea Fabris




--
Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f

Sponsor:
Piovono occasioni d'oro! Non perdere istanti preziosi
Clicca qui: http://adv2.email.it/cgi-bin/foclick.cgi?mid=610&d=25-7

Reply via email to