jXmlRpc

object to encode decode some XMl-RPC request and XMl-RPC response

package

jelix

subpackage

utils

see

Methods

__construct

__construct() 

deserialize a xmlrpc content to a php value

_decodeValue(\SimpleXMLElement $valuetag) : mixed
static

Arguments

$valuetag

\SimpleXMLElement

xmlrpc content

Response

mixed

the php value

serialize a php value into xmlrpc format

_encodeValue(mixed $value) : string
static

Arguments

$value

mixed

a value

Response

string

xmlrpc content

decode an xmlrpc request

decodeRequest(string $xmlcontent) : array
static

Arguments

$xmlcontent

string

the content of the request, in xmlrpc format

Response

array

first element content the method name to execute second element content parameters

decode an xmlrpc response

decodeResponse(string $xmlcontent) : mixed
static

Arguments

$xmlcontent

string

the content of the response, in xmlrpc format

Response

mixed

data stored into the response

encode an xmlrpc error response

encodeFaultResponse(string $code, string $message, string $charset = '') : string
static

Arguments

$code

string

the error code

$message

string

$charset

string

the charset to use

Response

string

the xmlrpc response

encode an xmlrpc request

encodeRequest(string $methodname, array $params, string $charset = '') : string
static

Arguments

$methodname

string

$params

array

method parameters

$charset

string

Response

string

xmlrpc request

encode an xmlrpc response

encodeResponse(mixed $params, string $charset = '') : string
static

Arguments

$params

mixed

the value to stored into the response

$charset

string

the charset to use

Response

string

the xmlrpc response