This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the use of @XmlRootElement

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i have created a webservice example.
soem articrafts created by swgen contains this what is the use of this annotation
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out how the generated SOAP differs if you change its "name" attribute. The javax.xml.bind.annotation.XmlRootElement javadocs also have some examples and explanations.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic