An XML-RPC client implementation

 Methods

Create a new XML-RPC client to a remote server

__construct(string $server, \Zend\Http\Client $httpClient) 

Parameters

$server

string

Full address of the XML-RPC service (e.g. http://time.xmlrpc.com/RPC2)

$httpClient

\Zend\Http\Client

HTTP Client to use for requests

Send an XML-RPC request to the service (for a specific method)

call(string $method, array $params) : mixed

Unified interface for calling custom remote methods.

Parameters

$method

string

Name of the method we want to call

$params

array

Array of parameters for the method

Exceptions

\Zend\XmlRpc\Client\Exception\FaultException

Returns

mixed

Perform an XML-RPC request and return a response.

doRequest(\Zend\XmlRpc\Request $request, null | \Zend\XmlRpc\Response $response) : void

Gets the HTTP client object.

getHttpClient() : \Zend\Http\Client

Gets the introspection object.

getIntrospector() : \Zend\XmlRpc\Client\ServerIntrospection

The request of the last method call

getLastRequest() : \Zend\XmlRpc\Request

The response received from the last method call

getLastResponse() : \Zend\XmlRpc\Response

Returns a proxy object for more convenient method calls

getProxy(string $namespace) : \Zend\XmlRpc\Client\ServerProxy

Parameters

$namespace

string

Namespace to proxy or empty string for none

Returns

Sets the HTTP client object to use for connecting the XML-RPC server.

setHttpClient(\Zend\Http\Client $httpClient) : \Zend\Http\Client

Parameters

$httpClient

\Zend\Http\Client

Returns

Sets the object used to introspect remote servers

setIntrospector(\Zend\XmlRpc\Client\ServerIntrospection $introspector) : \Zend\XmlRpc\Client\ServerIntrospection

Parameters

$introspector

\Zend\XmlRpc\Client\ServerIntrospection

Returns

Set skip system lookup flag

setSkipSystemLookup(bool $flag) : \Zend\XmlRpc\Client

Parameters

$flag

bool

Returns

Skip system lookup when determining if parameter should be array or struct?

skipSystemLookup() : bool

Returns

bool

Create request object

_createRequest(string $method, array $params) : \Zend\XmlRpc\Request

Parameters

$method

string

$params

array

Returns

 Properties

 

HTTP Client to use for requests

$httpClient : \Zend\Http\Client

 

Introspection object

$introspector : \Zend\XmlRpc\Client\ServerIntrospection

 

Request of the last method call

$lastRequest : \Zend\XmlRpc\Request

 

Response received from the last method call

$lastResponse : \Zend\XmlRpc\Response

 

Proxy object for more convenient method calls

$proxyCache : array

 

Full address of the XML-RPC service

$serverAddress : string

example http://time.xmlrpc.com/RPC2

Examples


 

Flag for skipping system lookup

$skipSystemLookup : bool