So, what does this mean, that the signature for Messaging style methods
will change from:
public class MyService {
Document myMethod(MessageContext, Document xml) {
}
}
to
to sth like this?:
public class MyService {
Document myMethod(Document xml) {
}
}
Ram�n.
> -----Original Message-----
> From: Glen Daniels [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 28, 2002 3:25 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: MessageContext argument in service method
>
>
>
> 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:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 26, 2002 7:48 AM
> > To: '[EMAIL PROTECTED]'
> > 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:[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
> > > > >
> > > >
> > >
> >
>