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 54885 - improvements in generated code for call ws operation
Summary: improvements in generated code for call ws operation
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC All
: P4 blocker (vote)
Assignee: issues@webservices
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-11 16:22 UTC by Lukas Jungmann
Modified: 2006-04-04 15:00 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2005-02-11 16:22:20 UTC
Consider web service (ws.NewWebService) with this
web service operation:

public String sayHello(String to) {
    return "Hello " + to;
}

Now create ws client for this ws and call sayHello
operation from eg. servlet.

Code generated by IDE is now (in case of JSR-109
client):
try {
    getNewWebServiceSEIPort().sayHello(/* TODO
enter operation arguments */);
} catch(java.rmi.RemoteException ex) {
    // TODO handle remote exception
}

I think that it would be better (useful) for
users/developers to generate this code for ws
mentioned above:
String to = null;
String result = null;
try {
    result = getNewWebServiceSEIPort().sayHello(to);
} catch(java.rmi.RemoteException ex) {
    // TODO handle remote exception
}

This means for each argument of ws operation
generate variables (with initial values - null, 0,
false,...) and provide variable which will contain
the result of call of ws operation (if it does not
have void as return type).
Comment 1 Lukas Jungmann 2006-03-31 15:29:49 UTC
Already implemented.
Comment 2 Lukas Jungmann 2006-04-04 15:00:47 UTC
v.