From: Kent Sibilev Date: 2006-08-22T00:41:43+09:00 Subject: Re: XMLRPC serialization bug? ------=_Part_5295_556535.1156174900626 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline You probably know that Ruby's Hash is unordered. On 8/21/06, Andrew Knott wrote: > > serializes the name / value parts of a struct in the wrong order? > > If I do a calll as below > > templatevalues = [:name=>"code",:value=>"thecode"},{:name=>"name", > :value=>"the name" }] > > result = > server.call("OrangeAPI.SendSmsTemplate > ",{:username=>"",:password=>"",:"remote-ip"=>""}, > { > :templateValues => templatevalues > }) > > > BUG?: it always produces after serialization - with the value first, > rather than the name > > > templateValues > > > > > > > value > the > code > > > > name > > code > > > > > > > > value > the > name > > > name > > name > > > > > > > > > > > I know you're not supposed to assume any order in XML but is there any > way around this? > > Andrew > > -- > Posted via http://www.ruby-forum.com/. > > -- Kent --- http://www.datanoise.com ------=_Part_5295_556535.1156174900626--