Grails populate params with XML from POST request

Posted by othman on Stack Overflow See other posts from Stack Overflow or by othman
Published on 2012-06-19T14:01:50Z Indexed on 2012/06/19 15:16 UTC
Read the original article Hit count: 206

Filed under:

I have a RestFull grails api that i expose through grails Controller. I need to automatically bind the xml data sent in a POST request. I don't think using groovy bindData(object,params) works as the params reference seems not having the xml elements. i use the parseRequest=true in the UrlMappings but yet the params Object does'nt have the xml elements.

am i missing some other config so that my params object get automatically populated with the xml body elements?

© Stack Overflow or respective owner

Related posts about grails