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 48645 - Web Service class should implement service endpoint interface
Summary: Web Service class should implement service endpoint interface
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Roderico Cruz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-08 09:21 UTC by Petr Blaha
Modified: 2006-05-31 18:16 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 Petr Blaha 2004-09-08 09:21:10 UTC
Build040908
I created simple web service. web service class
WShello and interface WShelloInterface has been
created. In WShello.java file missing  implements
statement.

public class WShello implements WShelloInterface {
}
Comment 1 _ ludo 2004-09-08 16:32:27 UTC
I am not sure it is necessary.
Can you point me to the spec mentioning this?
Comment 2 Petr Blaha 2004-09-08 17:01:08 UTC
I don't find spec, but you can look here:
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXRPC3.html
Comment 3 Roderico Cruz 2004-09-08 17:26:59 UTC
JSR 109 says: "The Service Implementation Bean may implement the
Service Endpoint Interface, but it is not required to do so. The bean
must implement all the method signatures of the SEI."
So at most, maybe we can give the user the option to always implement
the SEI or not.
Comment 4 Ann Sunhachawee 2004-09-08 19:32:34 UTC
Rico, Ludo -  Could you describe the scenario of when a user would not
want to implement the SEI? And give your thoughts on how often it may
occur (mention if it's backed up by any data, or just a guess) I've
seen in a couple of tutorials that use the implements approach.

Just want to get a gauge of if we should offer the option or not. Thanks
Comment 5 Petr Blaha 2004-09-09 07:04:02 UTC
I think, implementing SEI is a good choice because wscompile use this
interface to create wsdl file. If you implement SEI in your
implementations class all methods, published in wsdl file, must be
implemented.
Comment 6 Martin Balin 2004-09-14 16:58:57 UTC
I agree with Petr here. This is a tool to simplify development so 
doing something for user is good. It is also very easy if some 
advance user removes implements clause from class while people 
obeying tutorials will be very happy.
Comment 7 Roderico Cruz 2004-09-27 04:23:41 UTC
The service implementation bean now implements the service endpoint
interface by default.
Comment 8 Petr Blaha 2004-10-05 15:14:13 UTC
Build 041005
Comment 9 Petr Blaha 2004-10-13 10:40:15 UTC
Remove all issues from temporary component.