You can do that if you are using Messaging style services.
Ramón. > -----Original Message----- > From: Ken Weiner [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 26, 2002 2:49 AM > To: [EMAIL PROTECTED] > Subject: Re: MessageContext argument in service method > > > Glen, > > Thank you so much - that worked. Is having MessageContext as > the first > argument of a service method a thing of the past? > > -Ken > > ----- Original Message ----- > From: "Glen Daniels" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, March 25, 2002 1:52 PM > Subject: RE: MessageContext argument in service method > > > > > > Hi Ken: > > > > Try MessageContext.getCurrentContext(). > > > > --Glen > > > > > -----Original Message----- > > > From: Ken Weiner [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, March 25, 2002 4:49 PM > > > To: [EMAIL PROTECTED] > > > Subject: MessageContext argument in service method > > > > > > > > > Should I be able to include org.apache.axis.MessageContext as > > > the first > > > argument to any method in my service? > > > > > > I have a working client/service that uses > > > SimpleSessionHandler to stuff > > > session IDs into the SOAP header with each request and response. > Now, > > > while in my service, I'd like to access the session object which I > > > understand I can get from MessageContext.getSession() or > set and get > > > properties from MessageContext.setProperty() and > > > MessageContext.getProperty(). > > > > > > How do I access MessageContext in my service? When I try > adding it > as > > > the first argument to a method, my client throws the following > > > exception: java.lang.IllegalArgumentException: wrong number > > > of arguments > > > on object > > > > > > -Ken > > > > > >