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.

Bug 59664 - New websvc from ex. class should wrapp ex. class
Summary: New websvc from ex. class should wrapp ex. class
Status: RESOLVED DUPLICATE of bug 118960
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P4 blocker (vote)
Assignee: Radko Najman
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2005-06-06 16:19 UTC by Lukas Jungmann
Modified: 2007-12-12 15:52 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
jdev ws (26.70 KB, image/png)
2005-09-01 13:27 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2005-06-06 16:19:06 UTC
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);
        }
    }
Comment 1 Lukas Jungmann 2005-09-01 13:25:23 UTC
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)
Comment 2 Lukas Jungmann 2005-09-01 13:27:13 UTC
Created attachment 24455 [details]
jdev ws
Comment 3 Lukas Jungmann 2005-09-01 13:58:35 UTC
Some improvements in this use case have to be done, because current state seems
to be useless to me now. Increasing priority to P2.
Comment 4 Srividhya Narayanan 2007-04-25 17:04:53 UTC
Since there is support for @WebService in the class level, this can be downgrade.
Comment 5 Roderico Cruz 2007-12-12 15:50:24 UTC
Duplicate of http://www.netbeans.org/issues/show_bug.cgi?id=118960
Comment 6 Roderico Cruz 2007-12-12 15:51:11 UTC
Error in closing as fixed. shd be closed as duplicate
Comment 7 Roderico Cruz 2007-12-12 15:52:05 UTC

*** This issue has been marked as a duplicate of 118960 ***