From: Michael Neumann Date: 2002-06-29T23:08:42+09:00 Subject: Re: xmlrpc problems On Sat, Jun 29, 2002 at 09:16:14PM +0900, Jonas Bengtsson wrote: > Hello Michael, > > Thanks for your answer! Now I got it to work. But I have another > problem -- I want my method to reply something like this: > > > > > > > > > nickname > aa > > > userid > 11 > > > url > http://www.aaa.com > > > email > aaa@aaa.com > > > lastname > aaa > > > firstname > aaa > > > > > > > > > I tried to return a hash, but that didn't produce the right reply. Hmm, how does the result using a hash look like? It should look similar except perhaps the order in which the member's occure, because you cannot specify the order using hashs! If you want to preserve the ordering of members, use a Struct instead, as shown below: MyRecord = Struct.new("MyRecord", :nickname, :userid, :url, :email, :lastname, :firstname) aRecord = MyRecord.new("aa", ...) # return aRecord Regards, Michael