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#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

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