This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

Lucky J Verma
Ranch Hand
Posts: 278
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic