You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Jason Wells <ja...@semanticresearch.com> on 2002/07/10 22:09:42 UTC
Accessing servlet session from a SOAP service
Hello,
Does anyone know how (or if) a SOAP service can access objects in the
session?
Thanks,
Jason
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
Re: Accessing servlet session from a SOAP service
Posted by Robert Dietrick <rd...@sega.com>.
see:
http://xml.apache.org/soap/docs/guide/migration.html
Jason Wells wrote:
>
> Hello,
>
> Does anyone know how (or if) a SOAP service can access objects in the
> session?
>
> Thanks,
> Jason
>
> --
> To unsubscribe, e-mail: <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
Re: Accessing servlet session from a SOAP service
Posted by Robert Dietrick <rd...@sega.com>.
see:
http://xml.apache.org/soap/docs/guide/migration.html
Jason Wells wrote:
>
> Hello,
>
> Does anyone know how (or if) a SOAP service can access objects in the
> session?
>
> Thanks,
> Jason
>
> --
> To unsubscribe, e-mail: <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
Re: Accessing servlet session from a SOAP service
Posted by Jason Wells <ja...@semanticresearch.com>.
Okay. Kind of a funky approach, but it seems to get the job done. Thanks
for the help.
Regards,
Jason
On Wednesday, July 10, 2002, at 03:17 PM, Erich Izdepski wrote:
> I'm sorry, but I think I steered you in the wrong direction. The other
> reply
> mentioned this link:
> http://xml.apache.org/soap/docs/guide/migration.html
> which contains the following that should help you:
>
> ***
> The second search looks for a method with an additional (first)
> argument of
> type org.apache.soap.rpc.SOAPContext (please see the API docs for the
> details of that class). If found, then an instance of SOAPContext is
> passed
> to the service handler class.
>
> Having access to the incoming SOAPContext gives you a lot of freedom:
> you
> can access the following via the "getProperty" method:
>
> HTTPServlet object using the key
> org.apache.soap.Constants.BAG_HTTPSERVLET
> HTTPSession object using the key
> org.apache.soap.Constants.BAG_HTTPSESSION
> HTTPServletRequest object using the key
> org.apache.soap.Constants.BAG_HTTPSERVLETREQUEST
> HTTPServletResponse object using the key
> org.apache.soap.Constants.BAG_HTTPSERVLETRESPONSE
> ***
>
> So your service class signature needs to accept a SOAPContext object.
> It can
> then call getProperty(org.apache.soap.Constants.BAG_HTTPSESSION)on the
> SOAPContext instance to get the session.
>
> Erich Izdepski
> Senior Software Engineer
> Cysive, Inc.
>
>
> -----Original Message-----
> From: Jason Wells [mailto:jason@semanticresearch.com]
> Sent: Wednesday, July 10, 2002 6:10 PM
> To: soap-user@xml.apache.org
> Subject: Re: Accessing servlet session from a SOAP service
>
>
> This looks promising. How do I use this in my SOAP service class to get
> a reference to the session? Can you point me to a code example?
>
>
> On Wednesday, July 10, 2002, at 01:14 PM, Erich Izdepski wrote:
>
>> See org.apache.soap.server.http.ServerHTTPUtils.getTargetObject method.
>>
>> Erich Izdepski
>> Senior Software Engineer
>> Cysive, Inc.
>>
>>
>> -----Original Message-----
>> From: Jason Wells [mailto:jason@semanticresearch.com]
>> Sent: Wednesday, July 10, 2002 4:10 PM
>> To: soap-user@xml.apache.org
>> Subject: Accessing servlet session from a SOAP service
>>
>>
>> Hello,
>>
>> Does anyone know how (or if) a SOAP service can access objects in the
>> session?
>>
>> Thanks,
>> Jason
>>
>
>
> --
> To unsubscribe, e-mail: <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
>
>
> --
> To unsubscribe, e-mail: <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
>
Re: Accessing servlet session from a SOAP service
Posted by Jason Wells <ja...@semanticresearch.com>.
Okay. Kind of a funky approach, but it seems to get the job done. Thanks
for the help.
Regards,
Jason
On Wednesday, July 10, 2002, at 03:17 PM, Erich Izdepski wrote:
> I'm sorry, but I think I steered you in the wrong direction. The other
> reply
> mentioned this link:
> http://xml.apache.org/soap/docs/guide/migration.html
> which contains the following that should help you:
>
> ***
> The second search looks for a method with an additional (first)
> argument of
> type org.apache.soap.rpc.SOAPContext (please see the API docs for the
> details of that class). If found, then an instance of SOAPContext is
> passed
> to the service handler class.
>
> Having access to the incoming SOAPContext gives you a lot of freedom:
> you
> can access the following via the "getProperty" method:
>
> HTTPServlet object using the key
> org.apache.soap.Constants.BAG_HTTPSERVLET
> HTTPSession object using the key
> org.apache.soap.Constants.BAG_HTTPSESSION
> HTTPServletRequest object using the key
> org.apache.soap.Constants.BAG_HTTPSERVLETREQUEST
> HTTPServletResponse object using the key
> org.apache.soap.Constants.BAG_HTTPSERVLETRESPONSE
> ***
>
> So your service class signature needs to accept a SOAPContext object.
> It can
> then call getProperty(org.apache.soap.Constants.BAG_HTTPSESSION)on the
> SOAPContext instance to get the session.
>
> Erich Izdepski
> Senior Software Engineer
> Cysive, Inc.
>
>
> -----Original Message-----
> From: Jason Wells [mailto:jason@semanticresearch.com]
> Sent: Wednesday, July 10, 2002 6:10 PM
> To: soap-user@xml.apache.org
> Subject: Re: Accessing servlet session from a SOAP service
>
>
> This looks promising. How do I use this in my SOAP service class to get
> a reference to the session? Can you point me to a code example?
>
>
> On Wednesday, July 10, 2002, at 01:14 PM, Erich Izdepski wrote:
>
>> See org.apache.soap.server.http.ServerHTTPUtils.getTargetObject method.
>>
>> Erich Izdepski
>> Senior Software Engineer
>> Cysive, Inc.
>>
>>
>> -----Original Message-----
>> From: Jason Wells [mailto:jason@semanticresearch.com]
>> Sent: Wednesday, July 10, 2002 4:10 PM
>> To: soap-user@xml.apache.org
>> Subject: Accessing servlet session from a SOAP service
>>
>>
>> Hello,
>>
>> Does anyone know how (or if) a SOAP service can access objects in the
>> session?
>>
>> Thanks,
>> Jason
>>
>
>
> --
> To unsubscribe, e-mail: <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
>
>
> --
> To unsubscribe, e-mail: <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
>
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
RE: Accessing servlet session from a SOAP service
Posted by Erich Izdepski <ei...@cysive.com>.
I'm sorry, but I think I steered you in the wrong direction. The other reply
mentioned this link: http://xml.apache.org/soap/docs/guide/migration.html
which contains the following that should help you:
***
The second search looks for a method with an additional (first) argument of
type org.apache.soap.rpc.SOAPContext (please see the API docs for the
details of that class). If found, then an instance of SOAPContext is passed
to the service handler class.
Having access to the incoming SOAPContext gives you a lot of freedom: you
can access the following via the "getProperty" method:
HTTPServlet object using the key org.apache.soap.Constants.BAG_HTTPSERVLET
HTTPSession object using the key org.apache.soap.Constants.BAG_HTTPSESSION
HTTPServletRequest object using the key
org.apache.soap.Constants.BAG_HTTPSERVLETREQUEST
HTTPServletResponse object using the key
org.apache.soap.Constants.BAG_HTTPSERVLETRESPONSE
***
So your service class signature needs to accept a SOAPContext object. It can
then call getProperty(org.apache.soap.Constants.BAG_HTTPSESSION)on the
SOAPContext instance to get the session.
Erich Izdepski
Senior Software Engineer
Cysive, Inc.
-----Original Message-----
From: Jason Wells [mailto:jason@semanticresearch.com]
Sent: Wednesday, July 10, 2002 6:10 PM
To: soap-user@xml.apache.org
Subject: Re: Accessing servlet session from a SOAP service
This looks promising. How do I use this in my SOAP service class to get
a reference to the session? Can you point me to a code example?
On Wednesday, July 10, 2002, at 01:14 PM, Erich Izdepski wrote:
> See org.apache.soap.server.http.ServerHTTPUtils.getTargetObject method.
>
> Erich Izdepski
> Senior Software Engineer
> Cysive, Inc.
>
>
> -----Original Message-----
> From: Jason Wells [mailto:jason@semanticresearch.com]
> Sent: Wednesday, July 10, 2002 4:10 PM
> To: soap-user@xml.apache.org
> Subject: Accessing servlet session from a SOAP service
>
>
> Hello,
>
> Does anyone know how (or if) a SOAP service can access objects in the
> session?
>
> Thanks,
> Jason
>
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
RE: Accessing servlet session from a SOAP service
Posted by Erich Izdepski <ei...@cysive.com>.
I'm sorry, but I think I steered you in the wrong direction. The other reply
mentioned this link: http://xml.apache.org/soap/docs/guide/migration.html
which contains the following that should help you:
***
The second search looks for a method with an additional (first) argument of
type org.apache.soap.rpc.SOAPContext (please see the API docs for the
details of that class). If found, then an instance of SOAPContext is passed
to the service handler class.
Having access to the incoming SOAPContext gives you a lot of freedom: you
can access the following via the "getProperty" method:
HTTPServlet object using the key org.apache.soap.Constants.BAG_HTTPSERVLET
HTTPSession object using the key org.apache.soap.Constants.BAG_HTTPSESSION
HTTPServletRequest object using the key
org.apache.soap.Constants.BAG_HTTPSERVLETREQUEST
HTTPServletResponse object using the key
org.apache.soap.Constants.BAG_HTTPSERVLETRESPONSE
***
So your service class signature needs to accept a SOAPContext object. It can
then call getProperty(org.apache.soap.Constants.BAG_HTTPSESSION)on the
SOAPContext instance to get the session.
Erich Izdepski
Senior Software Engineer
Cysive, Inc.
-----Original Message-----
From: Jason Wells [mailto:jason@semanticresearch.com]
Sent: Wednesday, July 10, 2002 6:10 PM
To: soap-user@xml.apache.org
Subject: Re: Accessing servlet session from a SOAP service
This looks promising. How do I use this in my SOAP service class to get
a reference to the session? Can you point me to a code example?
On Wednesday, July 10, 2002, at 01:14 PM, Erich Izdepski wrote:
> See org.apache.soap.server.http.ServerHTTPUtils.getTargetObject method.
>
> Erich Izdepski
> Senior Software Engineer
> Cysive, Inc.
>
>
> -----Original Message-----
> From: Jason Wells [mailto:jason@semanticresearch.com]
> Sent: Wednesday, July 10, 2002 4:10 PM
> To: soap-user@xml.apache.org
> Subject: Accessing servlet session from a SOAP service
>
>
> Hello,
>
> Does anyone know how (or if) a SOAP service can access objects in the
> session?
>
> Thanks,
> Jason
>
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
Re: Accessing servlet session from a SOAP service
Posted by Jason Wells <ja...@semanticresearch.com>.
This looks promising. How do I use this in my SOAP service class to get
a reference to the session? Can you point me to a code example?
On Wednesday, July 10, 2002, at 01:14 PM, Erich Izdepski wrote:
> See org.apache.soap.server.http.ServerHTTPUtils.getTargetObject method.
>
> Erich Izdepski
> Senior Software Engineer
> Cysive, Inc.
>
>
> -----Original Message-----
> From: Jason Wells [mailto:jason@semanticresearch.com]
> Sent: Wednesday, July 10, 2002 4:10 PM
> To: soap-user@xml.apache.org
> Subject: Accessing servlet session from a SOAP service
>
>
> Hello,
>
> Does anyone know how (or if) a SOAP service can access objects in the
> session?
>
> Thanks,
> Jason
>
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
Re: Accessing servlet session from a SOAP service
Posted by Jason Wells <ja...@semanticresearch.com>.
This looks promising. How do I use this in my SOAP service class to get
a reference to the session? Can you point me to a code example?
On Wednesday, July 10, 2002, at 01:14 PM, Erich Izdepski wrote:
> See org.apache.soap.server.http.ServerHTTPUtils.getTargetObject method.
>
> Erich Izdepski
> Senior Software Engineer
> Cysive, Inc.
>
>
> -----Original Message-----
> From: Jason Wells [mailto:jason@semanticresearch.com]
> Sent: Wednesday, July 10, 2002 4:10 PM
> To: soap-user@xml.apache.org
> Subject: Accessing servlet session from a SOAP service
>
>
> Hello,
>
> Does anyone know how (or if) a SOAP service can access objects in the
> session?
>
> Thanks,
> Jason
>
RE: Accessing servlet session from a SOAP service
Posted by Erich Izdepski <ei...@cysive.com>.
See org.apache.soap.server.http.ServerHTTPUtils.getTargetObject method.
Erich Izdepski
Senior Software Engineer
Cysive, Inc.
-----Original Message-----
From: Jason Wells [mailto:jason@semanticresearch.com]
Sent: Wednesday, July 10, 2002 4:10 PM
To: soap-user@xml.apache.org
Subject: Accessing servlet session from a SOAP service
Hello,
Does anyone know how (or if) a SOAP service can access objects in the
session?
Thanks,
Jason
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
RE: Accessing servlet session from a SOAP service
Posted by Dan Allen <da...@nist.gov>.
Get the servlet context from the SOAP context
> -----Original Message-----
> From: Jason Wells [mailto:jason@semanticresearch.com]
> Sent: Wednesday, July 10, 2002 4:10 PM
> To: soap-user@xml.apache.org
> Subject: Accessing servlet session from a SOAP service
>
>
> Hello,
>
> Does anyone know how (or if) a SOAP service can access objects in the
> session?
>
> Thanks,
> Jason
>
>
> --
> To unsubscribe, e-mail: <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
>
>
RE: Accessing servlet session from a SOAP service
Posted by Dan Allen <da...@nist.gov>.
Get the servlet context from the SOAP context
> -----Original Message-----
> From: Jason Wells [mailto:jason@semanticresearch.com]
> Sent: Wednesday, July 10, 2002 4:10 PM
> To: soap-user@xml.apache.org
> Subject: Accessing servlet session from a SOAP service
>
>
> Hello,
>
> Does anyone know how (or if) a SOAP service can access objects in the
> session?
>
> Thanks,
> Jason
>
>
> --
> To unsubscribe, e-mail: <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
RE: Accessing servlet session from a SOAP service
Posted by Erich Izdepski <ei...@cysive.com>.
See org.apache.soap.server.http.ServerHTTPUtils.getTargetObject method.
Erich Izdepski
Senior Software Engineer
Cysive, Inc.
-----Original Message-----
From: Jason Wells [mailto:jason@semanticresearch.com]
Sent: Wednesday, July 10, 2002 4:10 PM
To: soap-user@xml.apache.org
Subject: Accessing servlet session from a SOAP service
Hello,
Does anyone know how (or if) a SOAP service can access objects in the
session?
Thanks,
Jason
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>
--
To unsubscribe, e-mail: <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>