File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes @WebMethod annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "@WebMethod annotation" Watch "@WebMethod annotation" New topic
Author

@WebMethod annotation

Kenneth Lomvey
Ranch Hand

Joined: Nov 08, 2008
Posts: 94
I know that if there are no @WebMethod annotations in a web service endpoint implementation class, then all public methods will be exposed as web service operations.

But, what will happen if there were at least one @WebMethod? Only that method will be exposed or, all public methods will be exposed?

Please explain me.
Chaminda Amarasinghe
Ranch Hand

Joined: May 17, 2006
Posts: 402
But, what will happen if there were at least one @WebMethod? Only that method will be exposed


Yes you are correct

or , all public methods will be exposed?


No
Kenneth Lomvey
Ranch Hand

Joined: Nov 08, 2008
Posts: 94
Thank you Chaminda
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @WebMethod annotation