It's not a secret anymore!
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 REST with Spring (video course) this week in the Spring 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: 42959
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!