3件ヒット
[1-3件を表示]
(0.017秒)
別のキーワード
検索結果
先頭1件
-
xmlrpc (31.0)
-
XML-RPC を扱うためのライブラリです。
...ard library package 'xmlrpc' enables you to create a server that
implements remote procedures and a client that calls them. Very little code
is required to achieve either of these.
=== Example
Try the following code. It calls a standard demonstration remote procedure.
require 'xmlrpc/client'......require 'pp'
server = XMLRPC::Client.new2("http://xmlrpc-c.sourceforge.net/api/sample.php")
result = server.call("sample.sumAndDifference", 5, 3)
pp result
=== Documentation
See http://www.ntecs.de/projects/xmlrpc4r. There is plenty of detail there to
use the client and implement a serve......er, then you have to call the <i>set_parser</i> method of
XMLRPC::Client instances or instances of subclasses of
XMLRPC::BasicServer or by editing xmlrpc/config.rb.
Client Example:
require 'xmlrpc/client'
# ...
server = XMLRPC::Client.new( "xmlrpc-c.sourceforge.net", "/api/sample.php")
se...