Andrew,

Are u talking about HTTP Basic authentication? You can access the
HttpServletRequest as follows:

HttpServletRequest request = (HttpServletRequest)
msgContext.getProperty(Constants.HTTP_SERVLET_REQUEST)

Then use:
String auth = (String) request.getHeader(HTTPConstants.HEADER_AUTHORIZATION)

to get the http header for authorization. You can then parse out the
user id and password as shown here [1]

-- dims

[1] http://koders.com/java/fidDCB769581B5FB55A16B0B191DEB229F79B8CB9E2.aspx

On 6/21/06, Andrew B <[EMAIL PROTECTED]> wrote:
Hi,

Does anyone know how to get the username and password that were set on the
client stub, in the service implementation class? This is another thing that
was easy in Axis 1 but so far seems to be impossible in Axis 2. I need them
to do authentication.

Thanks,

Andrew B


 ________________________________
Want to be your own boss? Learn how on Yahoo! Small Business.




--
Davanum Srinivas : http://people.apache.org/~dims/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to