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

How can I get the XML response with RestAssured?

 
pasquale vitale
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I've this Rest service class with annotation:



and I'm using this code to call the service:



It works, but the response is json. If I remove the annotation MediaType.APPLICATION_JSON in the @Produces, I get the XML response.
How can I get the XML response from above code whitout change @Produces?

Thank you and regards
pasquy73


 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic