Hi,
i have an issue getting the basic http authentification username and
password in the service skeleton of my webservice.

I try to resolve them via the MessageContext. The Code looks like this:


MessageContext msgContext = MessageContext.getCurrentMessageContext();

HttpTransportProperties.Authenticator authenticator =
(HttpTransportProperties.Authenticator)
msgContext.getOptions().getProperty(HTTPConstants.AUTHENTICATE);
                if (authenticator != null){
                        user = authenticator.getUsername();
                        password = authenticator.getPassword();
                }

What am i doing wrong? The client is definitly sending the
authentifaction  data.

Help would be welcome.

Thanks.

Björn Krüger

Reply via email to