In Axis 1.4 there is an easy way to get WSDD handler parameters as options
(BasicHandler.getOptions()).
So I tried to pass parameters to an handler which, in turn, passes parameters
to the service
via MessageContext.setProperty
It's a bit triky but it works.
Any better idea?
Regards,
pietro
> No, never used Axis1, sorry.
>
> On Nov 25, 2009, at 4:00 AM, Pietro Romanazzi wrote:
>
> > Thanks Charles,
> > good hint for Axis2.
> > Any idea for Axis 1.4?
> > Regards,
> > pietro
> >> You need to get a reference to the AxisService and then you can do
> >>
> >> axisService.getParameterValue("myname");
> >>
> >> AxisService is provided in some lifecycle methods, in others like the init
> >> method you need
> >>
> >> axisService = serviceContext.getAxisService();
> >>
> >> hth,
> >> charles
> >>
> >> On Nov 24, 2009, at 1:14 PM, Pietro Romanazzi wrote:
> >>
> >>> Hi,
> >>> this is a very old issue.
> >>> Could anyone help please?
> >>>
> >>> i declared a parameter "myname" in my wsdd file:
> >>> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> >>> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> >>> <service name="TestService" provider="java:RPC">
> >>> <parameter name="className" value="testService.TestService"/>
> >>> <parameter name="allowedMethods" value="*"/>
> >>> <parameter name="myname" value="myvalue"/>
> >>> </service>
> >>> </deployment>
> >>>
> >>> how can i read this parameter in my webservice classes?
> >>> Kindest regards,
> >>>
> >>> Pietro Romanazzi
> >>> InnovaPuglia S.p.a
> >>> Centro Tecnico RUPAR Puglia
> >>>
> >>>
> >>
> >>
> >
> >
> >
>