This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Services and the fly likes How can I get the XML response with RestAssured? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "How can I get the XML response with RestAssured?" Watch "How can I get the XML response with RestAssured?" New topic
Author

How can I get the XML response with RestAssured?

pasquale vitale
Greenhorn

Joined: Aug 22, 2008
Posts: 10
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


 
GeeCON Prague 2014
 
subject: How can I get the XML response with RestAssured?