From: gregarican Date: 2005-08-18T23:51:15+09:00 Subject: Re: Getting an array back in xmlrpc? Pit Capitain wrote: > If this works > > query.fetch.to_a > > > and this doesn't > > > query.fetch_all.to_a > > > maybe you need to convert each single record to an array first, like > > > query.fetch_all.map { |record| record.to_a } > > > Just a guess... > > > Regards, > Pit Digging deeper into the docs I see that xmlrpc can only handle a one dimensional array being passed back to the client. So what I did was pass back string values with ';' row delimiters and ',' record delimiters. Then the client parses this out to in turn shuffle them into the two-dimensional array I was looking for. The code is too ugly to post here due to my clumsiness :-) but it works!