We need to dump the raw XML for troubleshooting data dependant issues on a Grails 1.2 app. In the UrlMappings we have “parseRequest:true”. The following does not get me what I’m looking for, any other options? Note that we need this on a production machine, so fiddler or similar proxy based solutions suitable for development are not an option
def beforeInterceptor = {
println "#"*99
println "Executing action $actionName with params=$params"
println request.inputStream.dump()
//println request.inputStream.text // java.io.IOException: Stream closed
println request.XML
}
If I remember correctly, when you do request.XML you should receive an XmlSlurper object. So this should get what you want.