Play 1.2.4: process POST request with XML in the body

Messiah93

New Member
I've searched around for docs/examples of processing a POST request with XML as the body but can't seem to find up-to-date examples for play 1.2.4 (there is a nice annotation you can use for play 2.0 though).I have a Flex app that is posting XML like so:\[code\]public function post( url:String, xml:XML ):void{ var service:HTTPService = new HTTPService(); var responder:Responder = new Responder( postResult, postFault ); var token:AsyncToken; service.method = "POST"; service.contentType = "application/xml"; service.resultFormat = "e4x"; service.url = url; token = service.send( xml ); token.addResponder( responder );}\[/code\]How can I access the body as XML so I can process it with JAXB?thanks!
 
Back
Top