As of SOAP 2.2, if there is not match for the method signature, a signature
is tried with a leading parameter of type SOAPContext. If one exists, it is
called with the current request context as the first parameter. From that
parameter, you can get the session, servlet, request and response with code
like
HttpServlet servlet = (HttpServlet) reqContext.getProperty(
Constants.BAG_HTTPSERVLET );
HttpSession session = (HttpSession) reqContext.getProperty(
Constants.BAG_HTTPSESSION );
HttpServletRequest request = (HttpServletRequest)
reqContext.getProperty( Constants.BAG_HTTPSERVLETREQUEST );
HttpServletResponse response = (HttpServletResponse)
reqContext.getProperty( Constants.BAG_HTTPSERVLETRESPONSE );
So, for example, if the "natural" method is
void Callme(String arg)
then instead implement a method
void Callme(SOAPContext reqContext, String arg)
and access the reqContext as shown above.
Scott
----- Original Message -----
From: "Ashutosh Arora" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 12:59 AM
Subject: RE: httpRequest in my webservice ?
> Hi!
> Did you found how to get the HTTPRequest object in the Web Service? Do you
> mind sharing it with me.
> Thanks.
> -Ashutosh.
>
>
> -----Original Message-----
> From: Naggi Rao [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 10:13 AM
> To: [EMAIL PROTECTED]
> Subject: httpRequest in my webservice ?
>
>
> Hi all,
> Would it be possible for me to pass the Original HTTPRequest in to my
> WebService ?
> if so how
>
> Thanxs in advance,
> Naggi
>
>
>