This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Axis 2 support for inherited metods | ||
---|---|---|---|
Product: | webservices | Reporter: | sandi_ro <sandi_ro> |
Component: | Axis2 | Assignee: | Milan Kuchtiak <mkuchtiak> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
sandi_ro
2009-03-30 18:17:38 UTC
Reassigning to web service, please evaluate. Anyway this seems like enhancement to me. It may be a feature request, do we expect such inherited methods to appear in the project tree ? Is there anything in Axis2 runtime that supports this ? It looks like you have a specific requirement that is not supported in Axis2:java2wsdl utility. Netbeans cannot do much about that. As I understand you require this : Example : Super class: ===== public class Hello { public String hello() { return "hello"; } } ===== Service implementation class: ===== public class HelloService extends Hello { public String hello1(String name) { return "Hello "+name; } } ===== Axis configuration file (services.xml): <?xml version="1.0" encoding="UTF-8"?> <serviceGroup> <service name="HelloService" scope="application"> <description>HelloService service</description> <messageReceivers> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> </messageReceivers> <parameter name="ServiceClass">services.hello.HelloService</parameter> </service> </serviceGroup> ===== Now, unfortunately, the generated wsdl file contains just one WS operation: operation generated for hello1 method. Axis2:java2wsdl accepts just methods present in HelloService.java class, even when HelloService inherits another method from Hello.java class. The solution is to encapsulate hello() method in HelloService.java : ===== public class HelloService extends Hello { public String hello1(String name) { return "Hello "+name; } public String hello() { return super.hello(); } } ===== Or is there anything I miss ? Please, send an example and attach the screenshot of the project tree to see what's bad there. Your understanding is correct. I will fill a request to axis2 team . Thanks. Thanks. So I am closing this enhancement as WONT FIX. |