Or just set the |*PASSWORD_PROPERTY <../../../javax/xml/rpc/Stub.html#PASSWORD_PROPERTY>*| and |*USERNAME_PROPERTY <../../../javax/xml/rpc/Stub.html#USERNAME_PROPERTY>*|on your stub with _setProperty()

Aaron

Olivier RICHAUD wrote:

Tony,
Get the message context (Call.getMessageContext()) on your call object and then set both login and password. This will authentify your call using HTTP based authentication. Works fine for me.
Olivier.


    -----Message d'origine-----
    *De :* Tony Vieitez [mailto:[EMAIL PROTECTED]
    *Envoyé :* jeudi 27 novembre 2003 14:33
    *À :* [EMAIL PROTECTED]
    *Objet :* axis and tomcat security realm

Hi

    I’ve got web application that contains an axis web service hosted
    on tomcat. This web application has a security realm configured on
    it that requires a username and password. So when I try to access
    it from my client web service I get the following exception:

This request requires HTTP authentication ()

    How do I set up the client to send username and password
    information and allow it access to the service?

Thanks

Tony




Reply via email to