On Mon, 2006-07-17 at 10:00 +0200, heikki wrote:
Hi Deepal,
yes it works now ! I'm using the nighlty build fom July 16th.
To summarize -- the way that you indicated is the *only* way that
works, that is to say :
- you must use Constants.HTTP_SERVLET_REQUEST (and not
ok deprecated Constants.HTTP_SERVLET_REQUEST and made sure that
HTTPConstants.MC_HTTP_SERVLETREQUEST works.
-- dims
On 7/30/06, Sanjiva Weerawarana [EMAIL PROTECTED] wrote:
On Mon, 2006-07-17 at 10:00 +0200, heikki wrote:
Hi Deepal,
yes it works now ! I'm using the nighlty build fom July
Hi Deepal,yes it works now ! I'm using the nighlty build fom July 16th. To summarize -- the way that you indicated is the *only* way that works, that is to say :- you must use Constants.HTTP_SERVLET_REQUEST
(and not HTTPConstants.MC_HTTP_SERVLETREQUEST) ;- you must use msgCtx.getProperty() (and
heikki wrote:
Hi Deepal,
yes it works now ! I'm using the nighlty build fom July 16th.
To summarize -- the way that you indicated is the *only* way that
works, that is to say :
- you must use Constants.HTTP_SERVLET_REQUEST (and not
HTTPConstants.MC_HTTP_SERVLETREQUEST) ;
- you must use
Hi
Could anybody tell me how do I get the HTTPServletRequest object in Axis
1.3?
Thanks!
-Original Message-
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]
Sent: 13 July 2006 17:25
To: axis-user@ws.apache.org
Subject: Re: [Axis2] MessageContext w/o any properties
Hi Heikki;
I am
You need to call
msgCtx.getProperty(Constants.HTTP_SERVLET_REQUEST);
heikki wrote:
Hi there,
I'm trying to retrieve the HttpServletRequest in a handler, through
its MessageContext, like so
HttpServletRequest httpServletRequest = (HttpServletRequest)
This is a bug in the MessageContext which has been discussed recently on
the dev list. The getProperties() method of the MessageContext always
returns an empty map. So you can only get those properties you know the
key of by calling getProperty(key).
Carsten
Deepal Jayasinghe wrote:
You need
thanks for the tips, alas I'm still not getting the HttpServlet Request ..I tried, in the handler :1. Deepal's tip :httpServletRequest = (HttpServletRequest) msgContext.getProperty(Constants.HTTP_SERVLET_REQUEST
);2. Robert's tip :httpServletRequest = (HttpServletRequest)
Yes, I'm sure.. it happens before invocation of the SEI. Just to verify I put in your code snippet, added printlns about the results : if ( msgContext.getFLOW() == MessageContext.IN_FLOW ) { // get servlet context, request object
final ServletContext servletContext = (ServletContext)
Hi Heikki;
I am sorry for my mistake , I thought that you are invoking service
using http post ,
there was a problem in http get and I fixed that in current code base ,
so you will be able to get the HttpServlet Request using
httpServletRequest = (HttpServletRequest)
Hi,
from where did you obtain the msgContext object?
bruno
On 7/12/06, heikki [EMAIL PROTECTED] wrote:
Hi there,
I'm trying to retrieve the HttpServletRequest in a handler, through its
MessageContext, like so
HttpServletRequest httpServletRequest = (HttpServletRequest)
Hi,I do it inside a custom handler, the code of which ispackage com.xxx.handler;import java.util.Map;import java.util.Set;import javax.servlet.http.HttpServletRequest;import org.apache.axis2.AxisFault
;import org.apache.axis2.context.MessageContext;import org.apache.axis2.engine.Handler;import
When using properties in a handler, try this:
messageContext.getOperationContext().getProperty(
HTTPConstants.MC_HTTP_SERVLETREQUEST);
The way this works is explained here:
http://marc.theaimsgroup.com/?l=axis-devm=115255047000592w=2
In addition it seems that the outgoing
13 matches
Mail list logo