This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: @WebMethod annotation
 
Similar Threads
@WebMethod rules
Exposing ws methods
doubt in web service - @WebMethod makes other methods non-published
Enthuware standard tests doubts
Clarification on servlet based web service end point.