Accessing WS Securiy info in AbstractMarshallingPayloadEndpoint
I am using WS Security for authenticating my web service call.
I need to pass the user name to our business layer as we need to store the username in the database for every create / update. Now in order to pass the username to my business layer, i need to get the username in my web service end point.
what's the best way to do this? How do i access the SOAP Headers from an EndPoint or how do i pass this user information to my end point?
My thought is to extract the user information in an end point interceptor and place it in the message context. Then i can retreve this user information in the end point by implementing the onUnmarshalRequest method.
Any other ideas?
Thanks,
Sankar.