Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in web service - @WebMethod makes other methods non-published

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we put @WebService annotation in a class, it becomes web service and all it's public methods are automatically published. Right?

But if we specify @WebMethod for any method then only this method will be published, and all other methods (ofcourse public one) will not be published. Right?

Thanks.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic