File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@WebMethod annotation

 
Kenneth Lomvey
Ranch Hand
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 404
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Chaminda
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic