When I do an XMLRPC webservice call to retrieve a single Product, my DateTime fields in the products table do not get converted to a valid DateTime value, but remain as XMLRPC::DateTime structures. So, say my webservice call is: @product = @aws.get_product(1) Then my @product object looks like this: name: My product last_updated: #<XMLRPC::DateTime:0x37c5338> description: This is my product. unit_cost: 110.0 So, all values come through, but my DateTime value looks like the above. It doesn''t seem to be converted. Incidentally, it all works well when I use SOAP. Any ideas anybody? Am I missing something, or is this a bug? P.S. I am using DateTime fields on a MySql database. -- Posted via http://www.ruby-forum.com/.
I think this might be a bug in Rails. http://dev.rubyonrails.org/changeset/2945 This patch seems to have fixed it, except, I suspect it fixed it for when I am returning a date on its own, but if the datetime is inside a returned ActiveRecord object, then it fails. Is this something I need to report as a bug? Or has somebody got his functionality working?> So, say my webservice call is: > > @product = @aws.get_product(1) > > Then my @product object looks like this: > > name: My product > last_updated: #<XMLRPC::DateTime:0x37c5338> > description: This is my product. > unit_cost: 110.0 > > So, all values come through, but my DateTime value looks like the above. > It doesn''t seem to be converted.-- Posted via http://www.ruby-forum.com/.