Zend Framework
3.0
|
An XML-RPC client implementation. More...
Public Member Functions | |
__construct ($server, Http\Client $httpClient=null) | |
Create a new XML-RPC client to a remote server. | |
setHttpClient (Http\Client $httpClient) | |
Sets the HTTP client object to use for connecting the XML-RPC server. | |
getHttpClient () | |
Gets the HTTP client object. | |
setIntrospector (Client\ServerIntrospection $introspector) | |
Sets the object used to introspect remote servers. | |
getIntrospector () | |
Gets the introspection object. | |
getLastRequest () | |
The request of the last method call. | |
getLastResponse () | |
The response received from the last method call. | |
getProxy ($namespace= '') | |
Returns a proxy object for more convenient method calls. | |
setSkipSystemLookup ($flag=true) | |
Set skip system lookup flag. | |
skipSystemLookup () | |
Skip system lookup when determining if parameter should be array or struct? | |
doRequest ($request, $response=null) | |
Perform an XML-RPC request and return a response. | |
call ($method, $params=[]) | |
Send an XML-RPC request to the service (for a specific method) | |
Protected Member Functions | |
createRequest ($method, $params) | |
Create request object. | |
Protected Attributes | |
$serverAddress | |
$httpClient = null | |
$introspector = null | |
$lastRequest = null | |
$lastResponse = null | |
$proxyCache = [] | |
$skipSystemLookup = false | |
An XML-RPC client implementation.
__construct | ( | $server, | |
Http\Client | $httpClient = null |
||
) |
Create a new XML-RPC client to a remote server.
string | $server | Full address of the XML-RPC service (e.g. http://time.xmlrpc.com/RPC2) |
\Zend\Http\Client | $httpClient | HTTP Client to use for requests |
call | ( | $method, | |
$params = [] |
|||
) |
Send an XML-RPC request to the service (for a specific method)
string | $method | Name of the method we want to call |
array | $params | Array of parameters for the method |
\Zend\XmlRpc\Client\Exception\FaultException |
Exception thrown when an XML-RPC fault is returned
Implements Client.
|
protected |
Create request object.
string | $method | |
array | $params |
doRequest | ( | $request, | |
$response = null |
|||
) |
Perform an XML-RPC request and return a response.
\Zend\XmlRpc\Request | $request | |
null | \Zend\XmlRpc\Response | $response |
\Zend\XmlRpc\Client\Exception\HttpException |
Exception thrown when an HTTP error occurs
getHttpClient | ( | ) |
Gets the HTTP client object.
getIntrospector | ( | ) |
Gets the introspection object.
getLastRequest | ( | ) |
The request of the last method call.
getLastResponse | ( | ) |
The response received from the last method call.
getProxy | ( | $namespace = '' | ) |
Returns a proxy object for more convenient method calls.
string | $namespace | Namespace to proxy or empty string for none |
setHttpClient | ( | Http\Client | $httpClient | ) |
Sets the HTTP client object to use for connecting the XML-RPC server.
\Zend\Http\Client | $httpClient |
setIntrospector | ( | Client\ServerIntrospection | $introspector | ) |
Sets the object used to introspect remote servers.
\Zend\XmlRpc\Client\ServerIntrospection |
setSkipSystemLookup | ( | $flag = true | ) |
Set skip system lookup flag.
bool | $flag |
skipSystemLookup | ( | ) |
Skip system lookup when determining if parameter should be array or struct?
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |