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 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


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 » 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


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