aspose file tools*
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


 
 
subject: How can I get the XML response with RestAssured?
 
Similar Threads
Jersey REST - multiple file upload and JAXB object
JBoss-RESTEasy-Jackson problem
JAXB Based JSON support not working with Jersey JAX-RS
REST WS code gives error when returning ArrayList from method
JSF 2.0 and REST(Jeresy) Integratio