- public string build_fault (int fault_code, string fault_format, ...)
This creates an XML-RPC fault response and returns it as a string.
- public string? build_method_call (string method_name, Value[] @params)
This creates an XML-RPC methodCall and returns it as a string.
- public string? build_method_response (Value value)
This creates a (successful) XML-RPC methodResponse and returns it as a
string.
- public string build_request (string method_name, Variant @params) throws Error
This creates an XML-RPC methodCall and returns it as a string.
- public string build_response (Variant value) throws Error
This creates a (successful) XML-RPC methodResponse and returns it as a
string.
- public Quark error_quark ()
- public bool extract_method_call (string method_call, int length, out string method_name, ...)
Parses method_call
to get the name and parameters, and
puts the parameters into variables of the appropriate types.
- public bool extract_method_response (string method_response, int length, ...) throws Fault
Parses method_response
and extracts the return value into
a variable of the correct type.
- public Quark fault_quark ()
- public Message message_new (string uri, string method_name, Variant @params) throws Error
Creates an XML-RPC methodCall and returns a
Message, ready to send, for that method call.
- public void message_set_fault (Message msg, int fault_code, string fault_format, ...)
Sets the status code and response body of msg
to indicate
an unsuccessful XML-RPC call, with the error described by fault_code
and fault_format
.
- public bool message_set_response (Message msg, Variant value) throws Error
Sets the status code and response body of msg
to indicate
a successful XML-RPC call, with a return value given by value
.
- public bool parse_method_call (string method_call, int length, out string method_name, out ValueArray @params)
Parses method_call
to get the name and parameters, and
returns the parameter values in a ValueArray; see also
extract_method_call, which is more convenient if you know in advance
what the types of the parameters will be.
- public bool parse_method_response (string method_response, int length, out Value value) throws Fault
Parses method_response
and returns the return value in
value
.
- public string parse_request (string method_call, int length, out XMLRPCParams @params) throws Error
Parses method_call
and return the method name.
- public Variant parse_response (string method_response, int length, string? signature) throws Error
Parses method_response
and returns the return value.
- public Message request_new (string uri, string method_name, ...)
Creates an XML-RPC methodCall and returns a
Message, ready to send, for that method call.
- public void set_fault (Message msg, int fault_code, string fault_format, ...)
Sets the status code and response body of msg
to indicate
an unsuccessful XML-RPC call, with the error described by fault_code
and fault_format
.
- public void set_response (Message msg, ...)
Sets the status code and response body of msg
to indicate
a successful XML-RPC call, with a return value given by type
and the following varargs argument, of the type indicated by
type
.
- public Date variant_get_datetime (Variant variant) throws Error
- public Variant variant_new_datetime (Date date)
Construct a special Variant used to
serialize a <dateTime.