[ 
http://issues.apache.org/jira/browse/AXIS-1972?page=comments#action_66403 ]
     
Dmytro Dyachuk commented on AXIS-1972:
--------------------------------------

The problem is solved. The thing was that I should inherit class BasicProvider 
instead of BasicHandler. and I shoud overrride the method initServiceDesc in 
the following way:

public void initServiceDesc(SOAPService arg0, MessageContext arg1) throws 
AxisFault {
                EndPointService = (String) arg0.getOption("EndpointService");
}

Invocation of the this. getOption() as will return null's all the time as the 
hashtable with the Options is not initialized. 


Thx. 
Dmytro.




 


> 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

Reply via email to