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 49710 - Service delegate needs better generation heuristics
Summary: Service delegate needs better generation heuristics
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-29 21:45 UTC by _ pcw
Modified: 2005-07-11 12:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ pcw 2004-09-29 21:45:55 UTC
Create a service called Greeting, with an
operation called greet(string name).
When creating the typical client, it is natural to
create a JSP backing bean with a property called
'greeting' which implies a getter named
"getGreeting()".
The current code generation heuristics for a web
service delegate look for a method called
'get[serviceName]', ie 'getGreeting' for this case
and since there is one (but it's not really the
right method), no such service delegate is
generated and the port delegate code incorrectly
attempts to use the property method to retrive the
service delegate.

Should have 3-4 choices for service delegates and
do more checking (for example, arguments and
return type) to determine that a particular method
is in fact the delegate that we are looking for
(or not.)
Comment 1 Petr Blaha 2004-10-13 10:39:48 UTC
Remove all issues from temporary component.
Comment 2 Martin Grebac 2005-02-22 15:50:07 UTC
more checking can be done
Comment 3 _ pcw 2005-03-22 01:54:33 UTC
Martin, I can fix this.  Anyway, will need to synchronize since with you since
bug #50222 involves the same code.
Comment 4 Martin Grebac 2005-03-22 13:40:24 UTC
I expect to have 50222 fixed soon - I'll let you know, ok?
Comment 5 Martin Grebac 2005-03-25 09:52:48 UTC
I'll fix this together with 56928.
Comment 6 Martin Grebac 2005-03-25 17:42:04 UTC
Fixed in trunk:
Checking in InvokeOperationAction.java;
/cvs/websvc/core/src/org/netbeans/modules/websvc/core/client/actions/InvokeOperationAction.java,v
 <--  InvokeOperationAction.java
new revision: 1.10; previous revision: 1.9
done
Comment 7 Petr Blaha 2005-07-11 12:35:11 UTC
build 20050706