G
gregarican
I started off passing back a single SQL record to my xmlrpc client
using the following code on the xmlrpc server:
resultSet = query.fetch.to_a
return resultSet
Now I am looking to pass along an SQL recordset to my xmlrpc client. So
I tried the following code on the xmlrpc server:
resultSet = query.fetch_all.to_a
return resultSet
But the xmlrpc client end reports an HTTP 500 Internal Server error
when parsing this SQL recordset data back. I am using code like the
following on the xmlrpc client:
resultSet.collect {|line|
puts line
}
What should I do on the xmlrpc client end to correctly interpret the
results? When I print them to the console on the xmlrpc server I can
tell the SQL recordset is being passed back to the xmlrpc client as a
two dimensional array...
using the following code on the xmlrpc server:
resultSet = query.fetch.to_a
return resultSet
Now I am looking to pass along an SQL recordset to my xmlrpc client. So
I tried the following code on the xmlrpc server:
resultSet = query.fetch_all.to_a
return resultSet
But the xmlrpc client end reports an HTTP 500 Internal Server error
when parsing this SQL recordset data back. I am using code like the
following on the xmlrpc client:
resultSet.collect {|line|
puts line
}
What should I do on the xmlrpc client end to correctly interpret the
results? When I print them to the console on the xmlrpc server I can
tell the SQL recordset is being passed back to the xmlrpc client as a
two dimensional array...