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.
Current state: when user is creating new web svc from ex. class then he can select class or one of methods contained in this class. Created websvc only contains package private field of type of selected class (or class which contains selected method). Enhancement: create new websvc from ex. class as a wrapper of existing class (with possibility to choose which methods to include in a resulted websvc) for example web svc from this simple class: public class Counter { public int plus(int a, int b) { return a + b; } } could look like: public class WebServiceImpl implements WebServiceSEI { private Counter counter; public int plus(int a, int b) { return counter.plus(a, b); } }
other way how to implement this enhancement could be: -add new text field and button for locating existing source to the new web service wizard, so the first line in the wizard could look like: | (o) From scratch [x] Use existing code: |_mypackage.MyClass______| [ ... ] | where [ ... ] button invokes dialog with enabled codecompletion for available (relevant) classes -replace the second part of this wizard (the part where user chooses the class now) by the list of available methods in selected class/bean/... see attached screenshot how it is done in JDeveloper -in the second part there could be also an option to wrap/unwrap selected methods in generated ws-imlp class (set to wrap by default)
Created attachment 24455 [details] jdev ws
Some improvements in this use case have to be done, because current state seems to be useless to me now. Increasing priority to P2.
Since there is support for @WebService in the class level, this can be downgrade.
Duplicate of http://www.netbeans.org/issues/show_bug.cgi?id=118960
Error in closing as fixed. shd be closed as duplicate
*** This issue has been marked as a duplicate of 118960 ***