You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Wang, Hailong (NIH/CIT) [C]" <wa...@mail.nih.gov> on 2007/06/08 22:50:09 UTC

FW: Why does not my setOperationContext in my service implementation class have a chance to get run?


-----Original Message-----
From: Davanum Srinivas [mailto:davanum@gmail.com] 
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 rampart-dev@. explain the whole scenario and hopefully
Ruchith will have a solution for this.

thanks,
dims

On 6/8/07, Wang, Hailong (NIH/CIT) [C] <wa...@mail.nih.gov> 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:davanum@gmail.com]
> Sent: Friday, June 08, 2007 4:32 PM
> To: Wang, Hailong (NIH/CIT) [C]
> Cc: axis-user@ws.apache.org
> 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] <wa...@mail.nih.gov> 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:davanum@gmail.com]
> > Sent: Friday, June 08, 2007 3:09 PM
> > To: axis-user@ws.apache.org
> > 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] <wa...@mail.nih.gov> 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:   wangh3@mail.nih.gov
> > >
> > > URL:   http://ndar.nih.gov
> > >
> > >
> >
> >
> > --
> > Davanum Srinivas :: http://davanum.wordpress.com
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com