mardi 14 avril 2015

Rest Easy, How to accept XML / JSON requests as Source document object in post method



What I am trying to do is, if client is sending JSON or XML in post, it should be rendered as Source document parameter?



@POST
Response doPost(Source source){
}


Any Idea. I tried looking at MessageBodyReader / Writer some Interception methods but nothing seems to be working, and I believe MessageBodyReader are not longer supported in 3.0.10 Resteasy.





Aucun commentaire:

Enregistrer un commentaire