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.
have a ws interface: package samples; import javax.jws.WebService; @WebService public interface EndpointI { public int getAge(); } and ws impl class: package samples; import javax.jws.WebService; @WebService(endpointInterface="samples.EndpointI") public class WsImpl implements EndpointI { public int getAge() { throw new UnsupportedOperationException("Not supported yet."); } } -open ws in ws designer -invoke add operation action and add operation to web service => ws op. declaration added to interface contains @WebMethod and effect of this is that already presented operation is not treated as webmethod anymore
note for myself (or whoever will verify this): uncomment what's commented due to this issue in WebServiceDesignerTest's addOperation and removeOperation tests (qa-func tests in websvc.kit module)
Really awkward behaviour.
The same behavior is true for plain webservice ( without endpoint interface ). Let's WS has one method . This method doesn't have @javax.jws.WebMethod annotation. Open WS in the designer view. Add operation . Original operation disappears and just created is shown only.
changeset: 178694:e1ffe6d6ae36 user: Denis Anisimov <ads@netbeans.org> date: Mon Oct 04 17:35:45 2010 +0400 summary: Fix for BZ#150896 - added operation hides original one
Integrated into 'main-golden', will be available in build *201010050000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e1ffe6d6ae36 User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#150896 - added operation hides original one