Warning: build_method_call is deprecated.
This creates an XML-RPC methodCall and returns it as a string.
Use build_request instead.
This is the low-level method that request_new is built on.
params is an array of Value representing the parameters to
method. (It is *not* a ValueArray, although if you have a
ValueArray, you can just pass its <literal>values</literal>f
and <literal>n_values</literal> fields.)
The correspondence between glib types and XML-RPC types is:
int: LocaleCategory (g_type_int)
boolean: bool (g_type_boolean) string:
BusName* (g_type_string) double: double
(g_type_double) datetime.iso8601: Date (
soup_type_date) base64: ByteArray (
soup_type_byte_array) struct: GenericSet (
g_type_hash_table) array: ValueArray (
g_type_value_array)
For structs, use a GenericSet that maps strings to Value; value_hash_new and related methods can help with this.
| method_name |
the name of the XML-RPC method |
| n_params |
length of |
| params |
arguments to |
|
the text of the methodCall, or null on error |