Sha256: a0ed45223fcb752d9c407b3037405c45895cc5385e86d2a89777cd44f1ed5e00
Contents?: true
Size: 452 Bytes
Versions: 3
Compression:
Stored size: 452 Bytes
Contents
require 'helper' client = YamlRpc::Client.new('http://localhost:3000/site/', :form_data_root => :yaml_rpc) pp client.create_online_sales_order( :test => 'My test', :test2 => 'My test2' )[:response] # On the server side, if you're using Ruby on Rails you may want to: # # def create_online_sales_order # rpc_params = YamlRpc.decode(params[:yaml_rpc]) # render => YAML::dump({ :response => "Got your #{rpc_params.inspect}!" }) # end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yamlrpc-0.2.2 | examples/common_root_example.rb |
yamlrpc-0.2.1 | examples/common_root_example.rb |
yamlrpc-0.2.3 | examples/common_root_example.rb |