axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Daniels <gdani...@macromedia.com>
Subject RE: MessageContext argument in service method
Date Thu, 28 Mar 2002 02:24:56 GMT

Ew :) - yeah, no one has been in the MsgProvider for a long time.  Be warned - that's going
to go away at some point.

MessageContext.getCurrentContext() is the Axis-approved way of getting the MC in your service
method.

--Glen

> -----Original Message-----
> From: Ramon Turnes [mailto:ramon.turnes-perez@hermes.si]
> Sent: Tuesday, March 26, 2002 7:48 AM
> To: 'axis-user@xml.apache.org'
> Subject: RE: MessageContext argument in service method
> 
> 
> 
> You can do that if you are using Messaging style services. 
> 
> Ramón.
> 
> > -----Original Message-----
> > From: Ken Weiner [mailto:kweiner@interactivebusiness.com]
> > Sent: Tuesday, March 26, 2002 2:49 AM
> > To: axis-user@xml.apache.org
> > 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" <gdaniels@macromedia.com>
> > To: <axis-user@xml.apache.org>
> > 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:kweiner@interactivebusiness.com]
> > > > Sent: Monday, March 25, 2002 4:49 PM
> > > > To: axis-user@xml.apache.org
> > > > 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
> > > >
> > >
> > 
> 

Mime
View raw message