# XMLRPC raw\_post getting run through Hash#from\_xml

**URL:** <https://www.ruby-forum.com/t/xmlrpc-raw-post-getting-run-through-hash-from-xml/167541>\
**Category:** Rails\
**Created:** [May 9, 2009, 5:44am UTC](https://www.ruby-forum.com/t/xmlrpc-raw-post-getting-run-through-hash-from-xml/167541 "2009-05-09T05:44:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [May 9, 2009, 5:44am UTC](https://www.ruby-forum.com/t/xmlrpc-raw-post-getting-run-through-hash-from-xml/167541/1 "2009-05-09T05:44:03Z")

</div>

Im trying to create an api, and Im having trouble getting  
ActionController to not run the raw post data through Hash#from\_xml  
(request.parse\_formatted\_request\_parameters) for the XMLRPC post data.

I essentially want it to run through  
XMLRPC::XMLParser::REXMLStreamParser.new.parseMethodCall(request.raw\_post).

However, I can’t figure out a clever, clean way to get  
request.request\_parameters to not run since it can run as early as the  
dispatcher, which will essentially trigger Hash#from\_xml on that call  
before it even gets into the scope of the controller.

Anyone experience a problem like this before?

Granted I can just let Hash#from\_xml run and add a couple msec’s to  
every call for no reason, but there should be a way around it.
