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 Kapil Khanna <bo...@usa.net> on 2004/07/28 22:51:17 UTC

How to get a MessageContext from a client

I am consuming an external web service and am trying to get a handle to the 
MessageContext via MessageContext.getCurrentContext(). Unfortunately the
MessageContext  i 
get is always null.
The purpose of getting to the MessageContext is to get to the SOAPRequest and
SOAPResponse 
messages. There have been numerous posts regarding this but i have not seen
any concrete 
solution. I have heard about Handlers. My question is how do i configure a
Handler, cause i am 
running AXIS outside a web container, i.e from command line?
Per the users guide, handlers have been setup for a web service that is
running in the axis 
server.
Thanks.



Re: How to get a MessageContext from a client

Posted by Michael Thompson <mt...@uplogix.com>.
You can setup client side handlers in client-config.wsdd.  Just place it 
on your clients classpath.
  --m


Kapil Khanna wrote:

>I am consuming an external web service and am trying to get a handle to the 
>MessageContext via MessageContext.getCurrentContext(). Unfortunately the
>MessageContext  i 
>get is always null.
>The purpose of getting to the MessageContext is to get to the SOAPRequest and
>SOAPResponse 
>messages. There have been numerous posts regarding this but i have not seen
>any concrete 
>solution. I have heard about Handlers. My question is how do i configure a
>Handler, cause i am 
>running AXIS outside a web container, i.e from command line?
>Per the users guide, handlers have been setup for a web service that is
>running in the axis 
>server.
>Thanks.
>
>
>
>  
>