Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I get the XML response with RestAssured?

 
pasquale vitale
Greenhorn
Posts: 10
  • 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


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic