You don't mention which webservice stack or anything that you are using.

In general, the "results" vector returned from WSS4J does contain a Principal 
object that would hold the username/password stuff.   Thus, if that is 
available somehow, that's where you would look.

For CXF, we also map that into the standard JAX-WS 
MessageContext.getUserPrincipal() call making it very easy to get.

Dan


On Mon February 8 2010 5:59:17 am Lucaluke wrote:
> Hi guys,
> by specifying a soapenv:header in the wsdd file of my web service, I have
> managed to validate user name and password passed by the client...
> 
> The problem now is that later on in the code, I need  the username again,
> but all I have in the web service implementing classes is the request...
> which does not contain the header...
> is there a way to get this info again or to tell wss4j to include it in the
> request? any suggestions?
> 
> Thanks
> 

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to