Sha256: 862cc69eb41735b64ea4fdb2116b718feebb1eb8fedc256833269b3c1f7970af
Contents?: true
Size: 397 Bytes
Versions: 3
Compression:
Stored size: 397 Bytes
Contents
require 'helper' client = YamlRpc::Client.new('http://localhost:3000/site/') pp client.create_online_sales_order( :test => 'My test' )[: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, [:test]) # render => YAML::dump({ :response => "Got your #{rpc_params[:test]}!" }) # end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yamlrpc-0.2.1 | examples/simple_example.rb |
yamlrpc-0.2.2 | examples/simple_example.rb |
yamlrpc-0.2.3 | examples/simple_example.rb |