るりまサーチ

最速Rubyリファレンスマニュアル検索!
21件ヒット [1-21件を表示] (0.220秒)
トップページ > クエリ:/[x] > クエリ:xmlrpc/client[x]

別のキーワード

  1. rexml/document new
  2. rexml/document write
  3. rexml/document to_s
  4. rexml/document clone
  5. rexml/document node_type

ライブラリ

クラス

キーワード

検索結果

xmlrpc/client (44072.0)

XML-RPC クライアントのためのライブラリです。

...XML-RPC クライアントのためのライブラリです。

require "xmlrpc/client"

# Make an object to represent the XML-RPC server.
server = XMLRPC::Client.new( "xmlrpc-c.sourceforge.net", "/api/sample.php")

# Call the remote server and get our result
result = server.call("sample...
...a fault-structure:

==== by catching a XMLRPC::FaultException exception

require "xmlrpc/client"

# Make an object to represent the XML-RPC server.
server = XMLRPC::Client.new( "xmlrpc-c.sourceforge.net", "/api/sample.php")

begin
# Call the remote server and get our result
result =...
...e.faultString
end

==== by calling "call2" which returns a boolean

require "xmlrpc/client"

# Make an object to represent the XML-RPC server.
server = XMLRPC::Client.new( "xmlrpc-c.sourceforge.net", "/api/sample.php")

# Call the remote server and get our result
ok, result = server.c...

XMLRPC::Client (8024.0)

Class XMLRPC::Client provides remote procedure calls to a XML-RPC server.

...icate which method to
call on the remote-side and of course the parameters for the remote procedure.

require "xmlrpc/client"

server = XMLRPC::Client.new("www.ruby-lang.org", "/RPC2", 80)
begin
param = server.call("michael.add", 4, 5)
puts "4 + 5 = #{param}"
rescue XMLRP...
...:FaultException => e
puts "Error:"
puts e.faultCode
puts e.faultString
end

or

require "xmlrpc/client"

server = XMLRPC::Client.new("www.ruby-lang.org", "/RPC2", 80)
ok, param = server.call2("michael.add", 4, 5)
if ok then
puts "4 + 5 = #{param}"
else...

XMLRPC::Client#call(method, *args) (8016.0)

Invokes the method named method with the parameters given by args on the XML-RPC server. The parameter method is converted into a String and should be a valid XML-RPC method-name. Each parameter of args must be of one of the following types, where Hash, Struct and Array can contain any of these listed ((:types:)): * Fixnum, Bignum * TrueClass, FalseClass (true, false) * String, Symbol * Float * Hash, Struct * Array * Date, Time, XMLRPC::DateTime * XMLRPC::Base64 * A Ruby object which class includes XMLRPC::Marshallable (only if Config::ENABLE_MARSHALLABLE is true). That object is converted into a hash, with one additional key/value pair "___class___" which contains the class name for restoring later that object.

...class includes XMLRPC::Marshallable (only if Config::ENABLE_MARSHALLABLE is true).
That object is converted into a hash, with one additional key/value pair "___class___" which contains the class name
for restoring later that object.

The method returns the return-value from the RPC
((-st...

XMLRPC::Client.new2(uri, proxy=nil, timeout=nil) (8016.0)

: uri URI specifying protocol (http or https), host, port, path, user and password. Example: https://user:password@host:port/path : proxy Is of the form "host:port". : timeout Defaults to 30.

...: uri
URI specifying protocol (http or https), host, port, path, user and password.
Example: https://user:password@host:port/path
: proxy
Is of the form "host:port".
: timeout
Defaults to 30....

XMLRPC::Client.new_from_uri(uri, proxy=nil, timeout=nil) (8016.0)

: uri URI specifying protocol (http or https), host, port, path, user and password. Example: https://user:password@host:port/path : proxy Is of the form "host:port". : timeout Defaults to 30.

...: uri
URI specifying protocol (http or https), host, port, path, user and password.
Example: https://user:password@host:port/path
: proxy
Is of the form "host:port".
: timeout
Defaults to 30....

絞り込み条件を変える

XMLRPC::Client::Proxy (8012.0)

Class XMLRPC::Client::Proxy makes XML-RPC calls look nicer!

...d methods from class Object cannot be used as XML-RPC names, because they get around
method_missing.

require "xmlrpc/client"

server = XMLRPC::Client.new("www.ruby-lang.org", "/RPC2", 80)

michael = server.proxy("michael")
michael2 = server.proxy("michael", 4)

# both calls sho...

xmlrpc (156.0)

XML-RPC を扱うためのライブラリです。

...same term of license as Ruby.

=== Overview

XMLRPC is a lightweight protocol that enables remote procedure calls over
HTTP. It is defined at http://www.xmlrpc.com.

XMLRPC allows you to create simple distributed computing solutions that span
computer languages. Its distinctive feature is its sim...
...ion 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 det...
...* Standalone XML-RPC server
* CGI-based (works with FastCGI)
* Apache mod_ruby server
* WEBrick servlet

* Client
* synchronous/asynchronous calls
* Basic HTTP-401 Authentification
* HTTPS protocol (SSL)

* Parsers
* NQXML (NQXMLStreamParser, NQXMLTreeParser)...