I have an app at work that I''m thinking about porting to ruby/rails. I''m still pretty new to rails but I''ve gotten some small things accomplished. The app im trying to translate is written in Jscript for asp and it frequently does stuff like this: //------------- var theXML = new ActiveXObject(''Microsoft.XMLDOM''); theXML.load( Request ); //------------- Pages that have this code are hit by xmlHttp requests from other pages/apps that generate xml and pass it along to this page to be parsed/entered into the DB. Is there an equivalent to this "Request" object that I have access to in my application controllers which I can potentially parse into an REXML document? That''d be great. Thanks in advance, -Harold
On 7/26/05, Harold Hausman <hhausman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have an app at work that I''m thinking about porting to ruby/rails. > I''m still pretty new to rails but I''ve gotten some small things > accomplished. > > The app im trying to translate is written in Jscript for asp and it > frequently does stuff like this: > > //------------- > var theXML = new ActiveXObject(''Microsoft.XMLDOM''); > theXML.load( Request ); > //------------- > > Pages that have this code are hit by xmlHttp requests from other > pages/apps that generate xml and pass it along to this page to be > parsed/entered into the DB. > > Is there an equivalent to this "Request" object that I have access to > in my application controllers which I can potentially parse into an > REXML document? That''d be great.request.raw_post will have the raw post that the page has received. You can also use request.xml_post? to check if the post is XML (looks for one of these content types: ''application/xml'', ''text/xml'') -- rick techno-weenie.net