You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Shantanu Sen <ss...@pacbell.net> on 2003/08/13 23:05:55 UTC
question regarding axis in tomcat
When an invokation to a ws endpoint happens, the
URLMapper.invoke is called which does a
MessageContext.getTargetService, which eventually goes
to WSDDDeployment.getService. In WSDDDeployment the
available services are stored in a HashMap, the key
being the service name. This map is initialized during
axis startup from the deployed services.
Now if the service name has spaces e.g. "My Service",
I see a problem when running axis with tomcat 4.1.24.
When the invokation is done, the URL will be encoded,
i.e it will be like
http://host:port/axis/My+Service/...
Axis gets the path to the service from this invokation
from a MessageContext property:
msgContext.getProperty(
HTTPConstants.MC_HTTP_SERVLETPATHINFO)
This property is stored by AxisServlet (during the
doGet/doPost call) using
HttpServletRequest.getPathInfo
In this version of tomcat this call is returning the
non-url-decoded path i.e. in this case "My+Service".
As a result, the service cannot be found. If I use
tomcat version 4.0.4. then the call returns fine e.g.
it returns "My Service" and there is no problem for
axis finding the service.
Is this a known problem?
Another issue is that to work around this, I do not
see any other option other than overrifing the
AxisServlet doGet and doPost. Ideally if the
createMessageContext method in AxisServlet is
protected instead of private, I could override that to
fix it. Any ideas why this is not protected?
I am using axis 1.1
Thanks for any help.
Shantanu Sen
Re: How axis get the usr name and pass wd from http header
Posted by "Jeyakumaran.C" <jk...@vijayaba.cse.mrt.ac.lk>.
Hi Jim and all,
Thanks fro ur help.
I have found the way toe get them.
egards,
Jeyakumaran.C
----- Original Message -----
From: "Jim Harris" <Ji...@blueyonder.co.uk>
To: <ax...@ws.apache.org>
Sent: Tuesday, September 02, 2003 1:26 PM
Subject: RE: How axis get the usr name and pass wd from http header
> I'm sure there are some statice methods or variables that you can get this
> information from. I think this same question was answered quite
recently...
> Try accessing the Mailing List archives from the Axis website to search
for
> an answer.
>
> HTH
> Jim
>
> > -----Original Message-----
> > From: Jeyakumaran.C [mailto:jkumaran@vijayaba.cse.mrt.ac.lk]
> > Sent: 02 September 2002 07:44
> > To: axis-user@ws.apache.org; axis-dev@ws.apache.org
> > Subject: How axis get the usr name and pass wd from http header
> >
> >
> > Hi,
> > I want to know how user name and pass word are set in to MessageContext.
> > I went thru the code and hard to find.
> > How the usr name and pass wd are extracted from the http header.
> > Plz any body help.
> > Regards,
> > Jeyakumaran.C
> >
>
>
RE: How axis get the usr name and pass wd from http header
Posted by Jim Harris <Ji...@blueyonder.co.uk>.
I'm sure there are some statice methods or variables that you can get this
information from. I think this same question was answered quite recently...
Try accessing the Mailing List archives from the Axis website to search for
an answer.
HTH
Jim
> -----Original Message-----
> From: Jeyakumaran.C [mailto:jkumaran@vijayaba.cse.mrt.ac.lk]
> Sent: 02 September 2002 07:44
> To: axis-user@ws.apache.org; axis-dev@ws.apache.org
> Subject: How axis get the usr name and pass wd from http header
>
>
> Hi,
> I want to know how user name and pass word are set in to MessageContext.
> I went thru the code and hard to find.
> How the usr name and pass wd are extracted from the http header.
> Plz any body help.
> Regards,
> Jeyakumaran.C
>
How axis get the usr name and pass wd from http header
Posted by "Jeyakumaran.C" <jk...@vijayaba.cse.mrt.ac.lk>.
Hi,
I want to know how user name and pass word are set in to MessageContext.
I went thru the code and hard to find.
How the usr name and pass wd are extracted from the http header.
Plz any body help.
Regards,
Jeyakumaran.C
How axis get the usr name and pass wd from http header
Posted by "Jeyakumaran.C" <jk...@vijayaba.cse.mrt.ac.lk>.
Hi,
I want to know how user name and pass word are set in to MessageContext.
I went thru the code and hard to find.
How the usr name and pass wd are extracted from the http header.
Plz any body help.
Regards,
Jeyakumaran.C