るりまサーチ

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

別のキーワード

  1. xmlrpc new
  2. xmlrpc/server new
  3. xmlrpc serve
  4. xmlrpc add_handler
  5. xmlrpc/server serve

検索結果

<< 1 2 > >>

XMLRPC::Client (23052.0)

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

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

After setting the connection-parameters with XMLRPC::Client.new which
creates a new XMLRPC::Client instance, you can execute a remote procedure
by sending the XMLRPC::Client#call or XMLRPC::Client#call2
message to this new in...
...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#proxy2(prefix, *args) (21048.0)

Almost the same like XMLRPC::Client#proxy only that a call on the returned XMLRPC::Client::Proxy object behaves like XMLRPC::Client#call2, i.e. a call on that object will return two parameters.

...Almost the same like XMLRPC::Client#proxy only that a call on the returned
XMLRPC::Client
::Proxy object behaves like XMLRPC::Client#call2, i.e.
a call on that object will return two parameters....

XMLRPC::Client#call2(method, *args) (21032.0)

The difference between this method and XMLRPC::Client#call is, that this method do ((*not*)) raise a XMLRPC::FaultException exception. The method returns an array of two values. The first value indicates if the second value is a return-value (true) or an object of type XMLRPC::FaultException. Both are explained in XMLRPC::Client#call.

...and XMLRPC::Client#call is, that
this method do ((*not*)) raise a XMLRPC::FaultException exception.
The method returns an array of two values. The first value indicates if
the second value is a return-value (true) or an object of type
XMLRPC::FaultException.
Both are explained in XMLRPC::Client#cal...

XMLRPC::Client#multicall2(*methods) (21032.0)

Same as XMLRPC::Client#multicall, but returns like XMLRPC::Client#call2 two parameters instead of raising an XMLRPC::FaultException.

...Same as XMLRPC::Client#multicall, but returns like XMLRPC::Client#call2 two parameters
instead of raising an XMLRPC::FaultException....

XMLRPC::Client#proxy(prefix, *args) (21032.0)

Returns an object of class XMLRPC::Client::Proxy, initialized with prefix and args. A proxy object returned by this method behaves like XMLRPC::Client#call, i.e. a call on that object will raise a XMLRPC::FaultException when a fault-structure is returned by that call.

...Returns an object of class XMLRPC::Client::Proxy, initialized with
prefix and args. A proxy object returned by this method behaves
like XMLRPC::Client#call, i.e. a call on that object will raise a
XMLRPC::FaultException when a fault-structure is returned by that call....

絞り込み条件を変える

XMLRPC::Client#http_header_extra (21016.0)

Access the via XMLRPC::Client#http_header_extra= assigned header.

...Access the via XMLRPC::Client#http_header_extra= assigned header....

XMLRPC::Client.new3(hash={}) (21006.0)

Parameter hash has following case-insensitive keys: * host * path * port * proxy_host * proxy_port * user * password * use_ssl * timeout

...hash has following case-insensitive keys:
* host
* path
* port
* proxy_host
* proxy_port
* user
* password
* use_ssl
* timeout

Calls XMLRPC::Client.new with the corresponding values....

XMLRPC::Client.new_from_hash(hash={}) (21006.0)

Parameter hash has following case-insensitive keys: * host * path * port * proxy_host * proxy_port * user * password * use_ssl * timeout

...hash has following case-insensitive keys:
* host
* path
* port
* proxy_host
* proxy_port
* user
* password
* use_ssl
* timeout

Calls XMLRPC::Client.new with the corresponding values....

XMLRPC::Client#call(method, *args) (21000.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.

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 lis...

XMLRPC::Client#call2_async(...) (21000.0)

In contrast to corresponding methods without "_async", these can be called concurrently and use for each request a new connection, where the non-asynchronous counterparts use connection-alive (one connection for all requests) if possible.

In contrast to corresponding methods without "_async", these can be
called concurrently and use for each request a new connection, where the
non-asynchronous counterparts use connection-alive (one connection for all requests)
if possible.

Note, that you have to use Threads to call these methods co...

絞り込み条件を変える

XMLRPC::Client#call_async(...) (21000.0)

In contrast to corresponding methods without "_async", these can be called concurrently and use for each request a new connection, where the non-asynchronous counterparts use connection-alive (one connection for all requests) if possible.

In contrast to corresponding methods without "_async", these can be
called concurrently and use for each request a new connection, where the
non-asynchronous counterparts use connection-alive (one connection for all requests)
if possible.

Note, that you have to use Threads to call these methods co...

XMLRPC::Client#cookie (21000.0)

Get and set the HTTP Cookie header.

Get and set the HTTP Cookie header.

XMLRPC::Client#cookie=() (21000.0)

Get and set the HTTP Cookie header.

Get and set the HTTP Cookie header.

XMLRPC::Client#http_header_extra=() (21000.0)

Set extra HTTP headers that are included in the request.

Set extra HTTP headers that are included in the request.

XMLRPC::Client#http_last_response (21000.0)

Returns the Net::HTTPResponse object of the last RPC.

Returns the Net::HTTPResponse object of the last RPC.

絞り込み条件を変える

XMLRPC::Client#multicall(*methods) (21000.0)

You can use this method to execute several methods on a XMLRPC server which supports the multi-call extension. Example:

You can use this method to execute several methods on a XMLRPC server which supports
the multi-call extension.
Example:

s.multicall(
['michael.add', 3, 4],
['michael.sub', 4, 5]
)
# => [7, -1]

XMLRPC::Client#multicall2_async(...) (21000.0)

In contrast to corresponding methods without "_async", these can be called concurrently and use for each request a new connection, where the non-asynchronous counterparts use connection-alive (one connection for all requests) if possible.

In contrast to corresponding methods without "_async", these can be
called concurrently and use for each request a new connection, where the
non-asynchronous counterparts use connection-alive (one connection for all requests)
if possible.

Note, that you have to use Threads to call these methods co...

XMLRPC::Client#multicall_async(...) (21000.0)

In contrast to corresponding methods without "_async", these can be called concurrently and use for each request a new connection, where the non-asynchronous counterparts use connection-alive (one connection for all requests) if possible.

In contrast to corresponding methods without "_async", these can be
called concurrently and use for each request a new connection, where the
non-asynchronous counterparts use connection-alive (one connection for all requests)
if possible.

Note, that you have to use Threads to call these methods co...

XMLRPC::Client#password (21000.0)

Return the corresponding attributes.

Return the corresponding attributes.

XMLRPC::Client#password=() (21000.0)

Set the corresponding attributes.

Set the corresponding attributes.

絞り込み条件を変える

XMLRPC::Client#proxy2_async(...) (21000.0)

In contrast to corresponding methods without "_async", these can be called concurrently and use for each request a new connection, where the non-asynchronous counterparts use connection-alive (one connection for all requests) if possible.

In contrast to corresponding methods without "_async", these can be
called concurrently and use for each request a new connection, where the
non-asynchronous counterparts use connection-alive (one connection for all requests)
if possible.

Note, that you have to use Threads to call these methods co...

XMLRPC::Client#proxy_async(...) (21000.0)

In contrast to corresponding methods without "_async", these can be called concurrently and use for each request a new connection, where the non-asynchronous counterparts use connection-alive (one connection for all requests) if possible.

In contrast to corresponding methods without "_async", these can be
called concurrently and use for each request a new connection, where the
non-asynchronous counterparts use connection-alive (one connection for all requests)
if possible.

Note, that you have to use Threads to call these methods co...

XMLRPC::Client#set_parser(parser) (21000.0)

Sets the XML parser to use for parsing XML documents. Should be an instance of a class from module XMLRPC::XMLParser. If this method is not called, then XMLRPC::Config::DEFAULT_PARSER is used.

Sets the XML parser to use for parsing XML documents.
Should be an instance of a class from module XMLRPC::XMLParser.
If this method is not called, then XMLRPC::Config::DEFAULT_PARSER is used.

XMLRPC::Client#set_writer(writer) (21000.0)

Sets the XML writer to use for generating XML output. Should be an instance of a class from module XMLRPC::XMLWriter. If this method is not called, then XMLRPC::Config::DEFAULT_WRITER is used.

Sets the XML writer to use for generating XML output.
Should be an instance of a class from module XMLRPC::XMLWriter.
If this method is not called, then XMLRPC::Config::DEFAULT_WRITER is used.

XMLRPC::Client#timeout (21000.0)

Return the corresponding attributes.

Return the corresponding attributes.

絞り込み条件を変える

XMLRPC::Client#timeout=() (21000.0)

Set the corresponding attributes.

Set the corresponding attributes.

XMLRPC::Client#user (21000.0)

Return the corresponding attributes.

Return the corresponding attributes.

XMLRPC::Client#user=() (21000.0)

Set the corresponding attributes.

Set the corresponding attributes.

XMLRPC::Client.new(host=nil, path=nil, port=nil, proxy_host=nil, proxy_port=nil, user=nil, password=nil, use_ssl=false, timeout =nil) (21000.0)

Creates an object which represents the remote XML-RPC server on the given host host. If the server is CGI-based, path is the path to the CGI-script, which will be called, otherwise (in the case of a standalone server) path should be "/RPC2". port is the port on which the XML-RPC server listens. If proxy_host is given, then a proxy server listening at proxy_host is used. proxy_port is the port of the proxy server.

Creates an object which represents the remote XML-RPC server on the
given host host. If the server is CGI-based, path is the
path to the CGI-script, which will be called, otherwise (in the
case of a standalone server) path should be "/RPC2".
port is the port on which the XML-RPC server listens.
If p...

XMLRPC::Client.new2(uri, proxy=nil, timeout=nil) (21000.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) (21000.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 (3040.0)

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

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

You can call any method onto objects of that class - the object handles
method_missing and will forward the method call to a XML-RPC server.
Don't use this class directly, but use instead method XMLRPC::Client#proxy or
XMLRPC::Client
#proxy...
...call is forwarded to the XML-RPC server defined in XMLRPC::Client::Proxy.new.

Note: Inherited 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)

micha...

XMLRPC::Client::Proxy.new(server, prefix, args=[], meth=:call, delim=".") (3006.0)

Creates an object which provides method_missing.

...Creates an object which provides method_missing.

server must be of type XMLRPC::Client, which is the XML-RPC server to be used
for a XML-RPC call. prefix and delim will be prepended to the methodname
called onto this object.

Parameter meth is the method (call, call2, call_async, call2_async) to u...

xmlrpc/client (24.0)

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.sumAndDiffere...
...==== 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 = server.call("sample...
...==== 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.call2("sample.sumAnd...
<< 1 2 > >>