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 "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2006/09/14 12:27:22 UTC
[jira] Resolved: (AXIS2-1122) service?wsdl returns error in
conjunction with the startUp() method
[ http://issues.apache.org/jira/browse/AXIS2-1122?page=all ]
Deepal Jayasinghe resolved AXIS2-1122.
--------------------------------------
Resolution: Fixed
Fixed in current SVN
> service?wsdl returns error in conjunction with the startUp() method
> -------------------------------------------------------------------
>
> Key: AXIS2-1122
> URL: http://issues.apache.org/jira/browse/AXIS2-1122
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Test
> Environment: WinXP, Java 1.5.0_06, Tomcat 5.5.17, Axis2 nightly build (07-Sep-2006)
> Reporter: Christian Mohr
> Assigned To: Deepal Jayasinghe
> Attachments: TestService.aar
>
>
> The attached aar file contains a scope="application" service that implements the org.apache.axis2.engine.Service interface. This includes implementation of the method
> - public void startUp(ConfigurationContext ctx, AxisService service)
> as described in issue AXIS2-1033.
> The deployment of the aar works but when I try to access the generated WSDL via TestService?wsdl the following error is returned:
> <error>
> <description>Unable to generate WSDL for this service</description>
> <reason>Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC.</reason>
> </error>
> I can fix this by commenting out the startUp() method (which implies not to implement the Service interface) but I need this functionality.
> TestService:
> --------------
> public class TestService implements org.apache.axis2.engine.Service {
> public void destroy(ServiceContext ctx) {}
> public void init(ServiceContext ctx) {}
> public void setOperationContext(OperationContext ctx) {}
> public void startUp(ConfigurationContext ctx, AxisService service) {}
> public String echo(String s){ return s; }
> }
> services.xml:
> --------------
> <service name="TestService" scope="application">
> <description>Test web service.</description>
> <parameter name="ServiceClass" locked="false">de.cmohr.services.TestService</parameter>
> <parameter name="load-on-startup" locked="false">true</parameter>
> <operation name="echo">
> <messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> </operation>
> </service>
> Can you help me with this problem?
> Thanks
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org