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 valuesf
and n_values 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 |