call

- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (36)
- 2_2_9 (0)
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
call(method, *args)
public
Invokes the method named method with the parameters given by args on the XML-RPC server.
The method parameter 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:
-
TrueClass, FalseClass, true, false
-
A Ruby object which class includes XMLRPC::Marshallable (only if Config::ENABLE_MARSHALLING is true). That object is converted into a hash, with one additional key/value pair _class___ which contains the class name for restoring that object later.
The method returns the return-value from the Remote Procedure Call.
The type of the return-value is one of the types shown above.
A Bignum is only allowed when it fits in 32-bit. A XML-RPC dateTime.iso8601 type is always returned as a XMLRPC::DateTime object. Struct is never returned, only a Hash, the same for a Symbol, where as a String is always returned. XMLRPC::Base64 is returned as a String from xmlrpc4r version 1.6.1 on.
If the remote procedure returned a fault-structure, then a XMLRPC::FaultException exception is raised, which has two accessor-methods faultCode an Integer, and faultString a String.