You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Nicola Turri <nt...@selin.it> on 2003/11/13 19:58:29 UTC
read param from web.xml?
Hello, i need metod for read param in file web.xml from Axis
i've tryed but not function
org.apache.axis.MessageContext mctx;
mctx = org.apache.axis.MessageContext.getCurrentContext();
mctx.getService().getOption("myParam");
thanks
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.538 / Virus Database: 333 - Release Date: 10/11/2003
Re: read param from web.xml?
Posted by Steve Loughran <st...@iseran.com>.
Nicola Turri wrote:
> Have an example for read external parameter in Axis?
like I said, Look in AxisServlet and AxisServletBase
>
>
> ----- Original Message -----
> From: "Steve Loughran" <st...@iseran.com>
> To: <ax...@ws.apache.org>
> Sent: Thursday, November 13, 2003 10:55 PM
> Subject: Re: read param from web.xml?
>
>
>
>>Nicola Turri wrote:
>>
>>>Hello, i need metod for read param in file web.xml from Axis
>>>
>>>i've tryed but not function
>>>
>>> org.apache.axis.MessageContext mctx;
>>>
>>> mctx = org.apache.axis.MessageContext.getCurrentContext();
>>>
>>>mctx.getService().getOption("myParam");
>>>
>>
>>Axis' configuration mechanism is different, because it is designed to
>>work in situations where there is no web.xml. Axis config info is in the
>>wsdd descriptors, though you can get at the web.xml context by locating
>>the servlet context. you'll need to trace through AxisServlet to see
>>where this gets cached.
>>
>>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.538 / Virus Database: 333 - Release Date: 10/11/2003
>
Re: read param from web.xml?
Posted by Nicola Turri <nt...@selin.it>.
Have an example for read external parameter in Axis?
----- Original Message -----
From: "Steve Loughran" <st...@iseran.com>
To: <ax...@ws.apache.org>
Sent: Thursday, November 13, 2003 10:55 PM
Subject: Re: read param from web.xml?
> Nicola Turri wrote:
> >
> > Hello, i need metod for read param in file web.xml from Axis
> >
> > i've tryed but not function
> >
> > org.apache.axis.MessageContext mctx;
> >
> > mctx = org.apache.axis.MessageContext.getCurrentContext();
> >
> > mctx.getService().getOption("myParam");
> >
>
> Axis' configuration mechanism is different, because it is designed to
> work in situations where there is no web.xml. Axis config info is in the
> wsdd descriptors, though you can get at the web.xml context by locating
> the servlet context. you'll need to trace through AxisServlet to see
> where this gets cached.
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.538 / Virus Database: 333 - Release Date: 10/11/2003
Re: read param from web.xml?
Posted by Steve Loughran <st...@iseran.com>.
Nicola Turri wrote:
>
> Hello, i need metod for read param in file web.xml from Axis
>
> i've tryed but not function
>
> org.apache.axis.MessageContext mctx;
>
> mctx = org.apache.axis.MessageContext.getCurrentContext();
>
> mctx.getService().getOption("myParam");
>
Axis' configuration mechanism is different, because it is designed to
work in situations where there is no web.xml. Axis config info is in the
wsdd descriptors, though you can get at the web.xml context by locating
the servlet context. you'll need to trace through AxisServlet to see
where this gets cached.