Reading HTTP headers from JAX-WS Web Service

Posted by Anonimo on Stack Overflow See other posts from Stack Overflow or by Anonimo
Published on 2010-09-29T14:30:08Z Indexed on 2010/12/23 19:54 UTC
Read the original article Hit count: 209

Filed under:
|
|

Hi all,

I currently have a JAX-WS Web Service that receives some credentials in the HTTP header. These are used for BASIC authentication.

There is a filter that performs authentication by reading the HTTP headers and checking against the database.

Still, I need the username from within the Web Service in order to perform other service logic related stuff. Is there a way of accessing the HTTP headers from within the Web Service?

Thanks.

© Stack Overflow or respective owner

Related posts about web

Related posts about http-headers