aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "what is the use of @XmlRootElement " Watch "what is the use of @XmlRootElement " New topic
Author

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


Sudheer
SCWCD, SCJP 5
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the use of @XmlRootElement
 
Similar Threads
XML JAXB Serializable
JAX-WS2 dynamical creation of response wrapper bean Class
jax-ws complex nested type is killing me
Understanding @XmlElementRef in JAXB
@WebParam with complex type