Reading HTTP headers from JAX-WS Web Service -


i have jax-ws web service receives credentials in http header. these used basic authentication.

there filter performs authentication reading http headers , checking against database.

still, need username within web service in order perform other service logic related stuff. there way of accessing http headers within web service?

thanks.

the webservicecontext object work me. ca injected in web services resource:

@resource private webservicecontext context;


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -