[ http://issues.apache.org/jira/browse/AXIS2-1122?page=all ]

Deepal Jayasinghe reassigned AXIS2-1122:
----------------------------------------

    Assignee: Deepal Jayasinghe

> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to