From: "NAKAMURA, Hiroshi" Date: 2003-03-01T10:54:26+09:00 Subject: Re: XmlConfigFile usage Hi, Here's SOAP! Is there somebody listening?! > From: "why the lucky stiff" > Sent: Saturday, March 01, 2003 1:40 AM > Note that the array in the below XML-RPC call would look like so in YAML: > > - Name: Joe Bloggs > Address: 1 Disk Drive > > The RPC call itself is expressed by YAML.rb's RPC protocol like so: > > --- !okay/rpc > addcust: > - Name: Joe Bloggs > Address: 1 Disk Drive > > And here is the version which XML RPC would give: > > > > irb(main):002:0> require 'xmlrpc/marshal' > > true > > irb(main):003:0> XMLRPC::Marshal.dump_call('addcust',[{"Name"=>"Joe > > Bloggs","Address"=>"1 Disk Drive"}]) > > > > > > > > addcust > > > > > > > > > > > > > > > > > > Name > > > > Joe Bloggs > > > > > > > > Address > > > > 1 Disk Drive > > > > > > > > > > > > > > > > > > > > $ ruby -rsoap/marshal -e 'puts SOAPMarshal.dump({"Name"=>"Joe Bloggs", "Address"=>"1 Disk Drive"})' Name Joe Bloggs Address 1 Disk Drive Ugly? Indented by hand. Name Joe Bloggs Address 1 Disk Drive In Hash, key might be an object so value and value are not enough for general usage. (I agree these are enough for configfile.) Regards, // NaHi