[
http://issues.apache.org/jira/browse/AXIS-1972?page=comments#action_65469 ]
Brian Nielsen commented on AXIS-1972:
-------------------------------------
I'm no whizz, but I think you need to declare the handler and the parameter
explicitly, in other words you're handler can't get options from the service
"wsdd-scope".
As an example, I have a handler that i use for validation, and I've configured
i in the wsdd like:
<service name="..." style="document">
<requestFlow>
<handler type="java:dk.oio.xml.axis.handler.ValidationHandler" >
<parameter name="schemaLocation"
value="http://rep.oio.dk/cpr.dk/xml/schemas/core/2002/06/28/CPR_CivilRegistrationNumber.xsd"/>
</handler>
</requestflow>
</service>
and I have no problem, so you should have something like:
<service name="ScheduledProxy" provider="Handler">
<parameter name="handlerClass" value="WSP.ScheduledProxy"/>
<parameter name="scope" value="application"/>
<parameter name="Schedule" value = "true"/>
<requestFlow>
<handler type="java:<your package>.Proxy" >
<parameter name="EndpointService"
value="http://someURL:8080/axis/services/DBWebService"/>
</handler>
</requestFlow>
</service>
Regards Brian
> The options specified in a deploy file cannot be accessed with JavaProvider
> ---------------------------------------------------------------------------
>
> Key: AXIS-1972
> URL: http://issues.apache.org/jira/browse/AXIS-1972
> Project: Axis
> Type: Bug
> Components: Basic Architecture
> Versions: 1.2RC2
> Environment: JDK 1.5.0_02-b09, Tomcat 5.0
> Reporter: Dmytro Dyachuk
> Priority: Blocker
>
> I have the handler which inherits BasicHandler(used with JavaProvider), but
> the options field is always null(not initialized) and so there is not way of
> accessing the options specified in deploy-file.
> -piece of code which causes problems
> public Proxy() {
> super();
> EndPointService = (String)getOption("EndpointService");
> //throws exception
> System.out.println(getOptions()==null); //returns true;
> }
> -part of the deploy.wsdd
> <service name="ScheduledProxy" provider="Handler">
> <parameter name="handlerClass" value="WSP.ScheduledProxy"/>
> <parameter name="scope" value="application"/>
> <parameter name="EndpointService"
> value="http://someURL:8080/axis/services/DBWebService"/>
> <parameter name="Schedule" value = "true"/>
> </service>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira