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.
I just tried to create a web service from existing sources in a web application but I can't. The file chooser on the second page only allows selection of session beans, rather than session beans and existing classes. Steps: New Web app. Create a java class w/ a POJO containing various getter's & setter's (or use the attached project w/ com.service.MyClass. Invoke <New Web Service Wizard> Set the com.service package Check [use existing code] box. Select <Next> Note panel only allows selection of session beans (of which there won't be any if this is the only project open.) This is a regression from NB 4.1 and is caused by the fix for bug #65946 which disabled selection of java classes that were not session beans. As far as I can tell, the fix for 65946 should have only been for EJB Projects, not Web Apps, but this code is shared so as written, the change affects both project types.
Created attachment 28686 [details] web project w/ POJO to help reproduce this bug.
We decided to disable this posibility because we found it useless. The implementation only created new websvc and added package protected field of type <selectedClass> into the new websvc. What's the diference here between creating new websvc from scratch and adding field manually? I think only less typing, which is not so significant when you're using abbrevs + CC. Or overlooked we(I) something important/hidden? I've filed issue #59664 long time age to improve this use case, maybe it was overlooked - simply it has not been implemented yet. Milane, do you have some other comments?
The feature is now working for session beans (Delegator to existing Session Bean option in Web Service wizard) : Fix : http://websvc.netbeans.org/source/browse/websvc/dev/src/org/netbeans/modules/websvc/dev/wizard/Attic/WebServiceCreator.java?r1=1.1.2.6&r2=1.1.2.7 However, the selection of regular classes in WS wizard will not be supported as this feature will be replaced by "Convert to Web Service" action available for java classes.
VERIFIED