You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Wang, Hailong (NIH/CIT) [C]" <wa...@mail.nih.gov> on 2007/05/29 16:35:55 UTC
MessageContext.getCurrentMessageContext() returns null.
Hi,
I happened a problem. After I used Rampart in the axis2, from the
CallbackHandler in the server side I can not get MessageContext Instance
throught MessageContext.getCurrentMessageContext(). Is there anyone has
any clue on this problem? Thanks in advance.
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
RE: MessageContext.getCurrentMessageContext() returns null.
Posted by "Wang, Hailong (NIH/CIT) [C]" <wa...@mail.nih.gov>.
I was able to get MessageContext before. At that time I used the code
generated by wsdl2java. But right now I used AXIOM instead of code
generation. I am just wondering if I missed something in the client.
Hailong
-----Original Message-----
From: Davanum Srinivas [mailto:davanum@gmail.com]
Sent: Tuesday, May 29, 2007 10:58 AM
To: axis-user@ws.apache.org
Subject: Re: MessageContext.getCurrentMessageContext() returns null.
Hmm..handler's invoke() does have access to the message context..
public InvocationResponse invoke(MessageContext msgContext) throws
AxisFault;
-- dims
On 5/29/07, Tony Dean <To...@sas.com> wrote:
> yes, this is bad design. you should be able to get/set contextual
message information from within handlers just as in the same way you can
from jax-rpc and jax-ws handlders.
>
> > -----Original Message-----
> > From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
> > Sent: Tuesday, May 29, 2007 10:39 AM
> > To: axis-user@ws.apache.org
> > Subject: Re: MessageContext.getCurrentMessageContext() returns null.
> >
> > Hi,
> >
> > MessageContext.getCurrentMessageContext() will return the
> > message context only after the message reaches the message
> > receiver. The callback handler is called way before this and
> > at this point this will be null.
> >
> > Thanks,
> > Ruchith
> >
> > On 5/29/07, Wang, Hailong (NIH/CIT) [C] <wa...@mail.nih.gov> wrote:
> > >
> > >
> > >
> > >
> > > Hi,
> > >
> > >
> > >
> > > I happened a problem. After I used Rampart in the axis2, from the
> > > CallbackHandler in the server side I can not get MessageContext
> > > Instance throught
> > MessageContext.getCurrentMessageContext(). Is there
> > > anyone has any clue on this problem? Thanks in advance.
> > >
> > >
> > >
> > > 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
> > >
> > >
> >
> >
> > --
> > www.ruchith.org
> > www.wso2.org
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: MessageContext.getCurrentMessageContext() returns null.
Posted by "Wang, Hailong (NIH/CIT) [C]" <wa...@mail.nih.gov>.
I was able to get MessageContext before. At that time I used the code
generated by wsdl2java. But right now I used AXIOM instead of code
generation. I am just wondering if I missed something in the client.
-----Original Message-----
From: Davanum Srinivas [mailto:davanum@gmail.com]
Sent: Tuesday, May 29, 2007 10:58 AM
To: axis-user@ws.apache.org
Subject: Re: MessageContext.getCurrentMessageContext() returns null.
Hmm..handler's invoke() does have access to the message context..
public InvocationResponse invoke(MessageContext msgContext) throws
AxisFault;
-- dims
On 5/29/07, Tony Dean <To...@sas.com> wrote:
> yes, this is bad design. you should be able to get/set contextual
message information from within handlers just as in the same way you can
from jax-rpc and jax-ws handlders.
>
> > -----Original Message-----
> > From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
> > Sent: Tuesday, May 29, 2007 10:39 AM
> > To: axis-user@ws.apache.org
> > Subject: Re: MessageContext.getCurrentMessageContext() returns null.
> >
> > Hi,
> >
> > MessageContext.getCurrentMessageContext() will return the
> > message context only after the message reaches the message
> > receiver. The callback handler is called way before this and
> > at this point this will be null.
> >
> > Thanks,
> > Ruchith
> >
> > On 5/29/07, Wang, Hailong (NIH/CIT) [C] <wa...@mail.nih.gov> wrote:
> > >
> > >
> > >
> > >
> > > Hi,
> > >
> > >
> > >
> > > I happened a problem. After I used Rampart in the axis2, from the
> > > CallbackHandler in the server side I can not get MessageContext
> > > Instance throught
> > MessageContext.getCurrentMessageContext(). Is there
> > > anyone has any clue on this problem? Thanks in advance.
> > >
> > >
> > >
> > > 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
> > >
> > >
> >
> >
> > --
> > www.ruchith.org
> > www.wso2.org
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: MessageContext.getCurrentMessageContext() returns null.
Posted by Tony Dean <To...@sas.com>.
I'm referring to PWCB handlder, not module handler...
> -----Original Message-----
> From: Davanum Srinivas [mailto:davanum@gmail.com]
> Sent: Tuesday, May 29, 2007 10:58 AM
> To: axis-user@ws.apache.org
> Subject: Re: MessageContext.getCurrentMessageContext() returns null.
>
> Hmm..handler's invoke() does have access to the message context..
>
> public InvocationResponse invoke(MessageContext msgContext)
> throws AxisFault;
>
> -- dims
>
> On 5/29/07, Tony Dean <To...@sas.com> wrote:
> > yes, this is bad design. you should be able to get/set
> contextual message information from within handlers just as
> in the same way you can from jax-rpc and jax-ws handlders.
> >
> > > -----Original Message-----
> > > From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
> > > Sent: Tuesday, May 29, 2007 10:39 AM
> > > To: axis-user@ws.apache.org
> > > Subject: Re: MessageContext.getCurrentMessageContext()
> returns null.
> > >
> > > Hi,
> > >
> > > MessageContext.getCurrentMessageContext() will return the message
> > > context only after the message reaches the message receiver. The
> > > callback handler is called way before this and at this point this
> > > will be null.
> > >
> > > Thanks,
> > > Ruchith
> > >
> > > On 5/29/07, Wang, Hailong (NIH/CIT) [C]
> <wa...@mail.nih.gov> wrote:
> > > >
> > > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > >
> > > >
> > > > I happened a problem. After I used Rampart in the
> axis2, from the
> > > > CallbackHandler in the server side I can not get MessageContext
> > > > Instance throught
> > > MessageContext.getCurrentMessageContext(). Is there
> > > > anyone has any clue on this problem? Thanks in advance.
> > > >
> > > >
> > > >
> > > > 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
> > > >
> > > >
> > >
> > >
> > > --
> > > www.ruchith.org
> > > www.wso2.org
> > >
> > >
> --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: MessageContext.getCurrentMessageContext() returns null.
Posted by Davanum Srinivas <da...@gmail.com>.
Hmm..handler's invoke() does have access to the message context..
public InvocationResponse invoke(MessageContext msgContext) throws AxisFault;
-- dims
On 5/29/07, Tony Dean <To...@sas.com> wrote:
> yes, this is bad design. you should be able to get/set contextual message information from within handlers just as in the same way you can from jax-rpc and jax-ws handlders.
>
> > -----Original Message-----
> > From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
> > Sent: Tuesday, May 29, 2007 10:39 AM
> > To: axis-user@ws.apache.org
> > Subject: Re: MessageContext.getCurrentMessageContext() returns null.
> >
> > Hi,
> >
> > MessageContext.getCurrentMessageContext() will return the
> > message context only after the message reaches the message
> > receiver. The callback handler is called way before this and
> > at this point this will be null.
> >
> > Thanks,
> > Ruchith
> >
> > On 5/29/07, Wang, Hailong (NIH/CIT) [C] <wa...@mail.nih.gov> wrote:
> > >
> > >
> > >
> > >
> > > Hi,
> > >
> > >
> > >
> > > I happened a problem. After I used Rampart in the axis2, from the
> > > CallbackHandler in the server side I can not get MessageContext
> > > Instance throught
> > MessageContext.getCurrentMessageContext(). Is there
> > > anyone has any clue on this problem? Thanks in advance.
> > >
> > >
> > >
> > > 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
> > >
> > >
> >
> >
> > --
> > www.ruchith.org
> > www.wso2.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: MessageContext.getCurrentMessageContext() returns null.
Posted by Tony Dean <To...@sas.com>.
yes, this is bad design. you should be able to get/set contextual message information from within handlers just as in the same way you can from jax-rpc and jax-ws handlders.
> -----Original Message-----
> From: Ruchith Fernando [mailto:ruchith.fernando@gmail.com]
> Sent: Tuesday, May 29, 2007 10:39 AM
> To: axis-user@ws.apache.org
> Subject: Re: MessageContext.getCurrentMessageContext() returns null.
>
> Hi,
>
> MessageContext.getCurrentMessageContext() will return the
> message context only after the message reaches the message
> receiver. The callback handler is called way before this and
> at this point this will be null.
>
> Thanks,
> Ruchith
>
> On 5/29/07, Wang, Hailong (NIH/CIT) [C] <wa...@mail.nih.gov> wrote:
> >
> >
> >
> >
> > Hi,
> >
> >
> >
> > I happened a problem. After I used Rampart in the axis2, from the
> > CallbackHandler in the server side I can not get MessageContext
> > Instance throught
> MessageContext.getCurrentMessageContext(). Is there
> > anyone has any clue on this problem? Thanks in advance.
> >
> >
> >
> > 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
> >
> >
>
>
> --
> www.ruchith.org
> www.wso2.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: MessageContext.getCurrentMessageContext() returns null.
Posted by Ruchith Fernando <ru...@gmail.com>.
Hi,
MessageContext.getCurrentMessageContext() will return the message
context only after the message reaches the message receiver. The
callback handler is called way before this and at this point this will
be null.
Thanks,
Ruchith
On 5/29/07, Wang, Hailong (NIH/CIT) [C] <wa...@mail.nih.gov> wrote:
>
>
>
>
> Hi,
>
>
>
> I happened a problem. After I used Rampart in the axis2, from the
> CallbackHandler in the server side I can not get MessageContext Instance
> throught MessageContext.getCurrentMessageContext(). Is
> there anyone has any clue on this problem? Thanks in advance.
>
>
>
> 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
>
>
--
www.ruchith.org
www.wso2.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org