extract_method_response


Description:

[ CCode ( sentinel = "G_TYPE_INVALID" ) ]
[ Version ( deprecated = true ) ]
public bool extract_method_response (string method_response, int length, ...) throws Fault

Warning: extract_method_response is deprecated.

Parses method_response and extracts the return value into a variable of the correct type.

Note:

Use parse_response instead.

If method_response is a fault, the return value will be unset, and error will be set to an error of type SOUP_XMLRPC_FAULT, with the error code containing the fault code, and the error message containing the fault string. (If method_response cannot be parsed at all, extract_method_response will return false , but error will be unset.)

Parameters:

method_response

the XML-RPC methodResponse string

length

the length of method_response, or -1 if it is NUL-terminated

...

location for return value

error

error return value

type

the expected type of the return value

Returns:

true if a return value was parsed, false if the response was of the wrong type, or contained a fault.


Namespace: Soup.XMLRPC
Package: libsoup-2.4