This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes XML and Related Technologies and the fly likes XML view on browser using JAXB2marshallers in Spring Restful Web service. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML view on browser using JAXB2marshallers in Spring Restful Web service." Watch "XML view on browser using JAXB2marshallers in Spring Restful Web service." New topic
Author

XML view on browser using JAXB2marshallers in Spring Restful Web service.

Lucky J Verma
Ranch Hand

Joined: Apr 11, 2007
Posts: 278
Hi all

I am new and writing a basic REST web service with Spring WS and using JAXB2 for XML view.
I have jabx api jar and spring-jaxb jar in my lib folder.
In my servlet xml i defined my XML view using JAXB2marshaller & also defined contentNegotiatingViewResolver (i dont actually need it)



From my controller, i have some handler methods and i realized only 2nd way works but i wonder why.
I followed the tutorial & books which define 2nd method as correct.
Please suggest what do i miss in settings.




Please suggest - what is wrong in my settings.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML view on browser using JAXB2marshallers in Spring Restful Web service.