------art_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] ¨Âuser[email]sd
user[pass]493

it is fine. But, when it has say two root elements like,

user[name] ¨Âuser[email]sd
user[pass]493
fc_id #2

It will start crapping out with error messages like -
 Session ID: e3fe6e12eb9f685d82d87f413590efa9
  Parameters: {"format"<Mime::Type:0xb797b21c @synonymstext/xml",
"application/x-xml"], @symbolml, @string
pplication/xml">,
"exception"#<REXML::ParseException: malformed XML: missing tag
start\nLine: \nPosition: \nLast 80 unconsumed characters:\n<user[email]>
nuwan / nuwan.com</user[email]><user[first_name]>nuwan</user[first_nam>\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!

------art_5973_24882660.1206682595683--