From: Rajat Garg Date: 2008-03-28T14:36:25+09:00 Subject: Issues with Ruby trying to parse data passed from Flex app ------=_Part_5973_24882660.1206682595683 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Guys, I have a Ruby API that is getting called by a Flex app using POST. The problem is as long as data is in the format of - user[name]=alsk user[email]=klsd user[pass]=03493 it is fine. But, when it has say two root elements like, user[name]=alsk user[email]=klsd user[pass]=03493 fc_id =232 It will start crapping out with error messages like - Session ID: e3fe6e12eb9f685d82d87f413590efa9 Parameters: {"format"=>#, "exception"=>"# nuwan@nuwan.comnuwan\n/usr/local/lib/ruby/1.8/rexml/parsers/baseparser.rb:346:in `pull'\n/usr/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'\n/usr/local/lib/ruby/1.8/rexml/document.rb:190:in `build'\n/usr/local/lib/ruby/1.8/rexml/document.rb:45:in `initialize'\n/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/vendor/xml_simple.rb:952:in What is the problem? Can I only pass 1 record with a set of values or can I pass two records. Same thing works for GET. Please advise. Thx, -- Rajat Garg Ph: 206-499-9495 Add: 1314 Spring Street, #412 Seattle, WA 98104 Web: http://www.pilotoutlook.com ----------------------------------------------------------------------------------------------------- Flying is the second greatest thrill known to man. Landing is the first! ------=_Part_5973_24882660.1206682595683--