This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Web Services and the fly likes what is the use of @XmlRootElement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "what is the use of @XmlRootElement " Watch "what is the use of @XmlRootElement " New topic

what is the use of @XmlRootElement

sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237

hi i have created a webservice example.
soem articrafts created by swgen contains this what is the use of this annotation

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
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.
I agree. Here's the link:
subject: what is the use of @XmlRootElement
It's not a secret anymore!