• Post Reply Bookmark Topic Watch Topic
  • New Topic

Current User or session information

 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Does anyone know how/if I can request the user that is doing the current request in a JAXRPC webservice. I want to return some user specific data from the database but I am not able to see how I can select the user that has done the current request. The user has been authenticated by using basic authentication so his information should be available somewhere!
 
Rr Kumaran
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
may be you can use JAX-RPC API's that help you read the HTTP Headers. This can be achieved using JAX-RPC Handlers.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Axis that's possible with something like the following. Other WS engines probably have a similar mechanism. Just getting the HttpServletRequest is useful in its own right.


[ September 20, 2005: Message edited by: Ulf Dittmer ]
 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I found something similar and it works great. Still hoping to find someting without having to use Axis specific classes. But it works and thats the most important thing of course.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!