• Post Reply Bookmark Topic Watch Topic
  • New Topic

@WebMethod annotation

 
Kenneth Lomvey
Ranch Hand
Posts: 94
  • 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: 413
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Chaminda
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!