MessageContext.getCurrentContext() will get you the currently active MessageContext from within your service. This technique (using thread-local storage) is much cleaner than the old kludgey way of doing it. :)
--Glen > -----Original Message----- > From: Dan Silver [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 20, 2002 2:25 PM > To: [EMAIL PROTECTED] > Subject: MessageContext method parameter > > > > Hi everyone - > > In Axis alpha 3 I saw the following code in > RPCProvider.processMessage(): > > // if the method wasn't found, try again with msgContext as an > // additional, initial argument... > if ( method == null ) { > args.add( 0, msgContext ); > method = getMethod(jc, mName, args); > } > > but in beta1 this appears to have been removed. > RPCProvider.invokeMethod() > takes a MessageContext as a parameter but doesn't actually do > anything with it. In the to-do list I also saw: > > X <Glen> Remove search-for-first-MessageContext-arg code > > so was this intentionally removed? And if so, is there any way > for me to grab the MessageContext from within the class that's > instantiated to service the request, or is the preferred method > to write my own handler, or ? > > Thx in advance, > > - Dan Silver >