-----Original Message----- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Friday, June 08, 2007 4:49 PM To: Wang, Hailong (NIH/CIT) [C] Subject: Re: Why does not my setOperationContext in my service implementation class have a chance to get run?
Hailong, Better ask on [EMAIL PROTECTED] explain the whole scenario and hopefully Ruchith will have a solution for this. thanks, dims On 6/8/07, Wang, Hailong (NIH/CIT) [C] <[EMAIL PROTECTED]> wrote: > What I am trying to do is to save the username sent by using > UsernameToken into SessionContext in the password callback function. > > Hailong > > -----Original Message----- > From: Davanum Srinivas [mailto:[EMAIL PROTECTED] > Sent: Friday, June 08, 2007 4:32 PM > To: Wang, Hailong (NIH/CIT) [C] > Cc: [EMAIL PROTECTED] > Subject: Re: Why does not my setOperationContext in my service > implementation class have a chance to get run? > > Sorry, i don't understand the whole scenario. can you please explain > in detail a bit more what you are trying to do? > > thanks, > dims > > On 6/8/07, Wang, Hailong (NIH/CIT) [C] <[EMAIL PROTECTED]> wrote: > > Dims, > > > > Thank you for your reply. > > > > I know that I can get the current message context through > > MessageContext's static method. But at that point it is already too > > late. Because what I want to do is in service method I need to know > whom > > I am serving. The only place to get this information is from password > > callback function. So I want to get user information and put into > > SessionContext that my service method can get it. But obviously in the > > password callback function there is now > > MessageContext(MessageContext.getCurrentMessageContext() returns > null). > > But there is a SessionContext. I hope I can set SessionContext at the > > setOperationContext, then in password callback function I can use it > to > > store user information. What do you think? > > > > > > Hailong > > > > -----Original Message----- > > From: Davanum Srinivas [mailto:[EMAIL PROTECTED] > > Sent: Friday, June 08, 2007 3:09 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Why does not my setOperationContext in my service > > implementation class have a chance to get run? > > > > Please use MessageContext's static method to get the current context > > from inside your web service method. > > > > thanks, > > dims > > > > On 6/8/07, Wang, Hailong (NIH/CIT) [C] <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > The setOperationContext function in my service implementation class > > does not > > > have a chance to run. Anyone knows why? I appreciate your help. > > > > > > > > > > > > > > > > > > > > > > > > Hailong Wang > > > > > > National Database for Autism Research(NDAR) > > > > > > NIH/CIT/DECA (MOM CONTRACTOR) > > > > > > 9000 Rockville Pike, Bld 12A/Room 2027 > > > > > > Bethesda, MD 20892 > > > > > > Phone: 301-402-3045 > > > > > > Fax: 301-480-0028 > > > > > > Email: [EMAIL PROTECTED] > > > > > > URL: http://ndar.nih.gov > > > > > > > > > > > > -- > > Davanum Srinivas :: http://davanum.wordpress.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- > Davanum Srinivas :: http://davanum.wordpress.com > -- Davanum Srinivas :: http://davanum.wordpress.com
