$_server
$_server : object
Resource handler for the SOAP server.
The Horde_Rpc_Soap class provides a PHP 5 Soap implementation of the Horde RPC system.
Copyright 2003-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
authorize() : boolean
Check authentication. Different backends may handle authentication in different ways. The base class implementation checks for HTTP Authentication against the Horde auth setup.
Returns true if authentication is successful. Should send appropriate "not authorized" headers or other response codes/body if auth fails, and take care of exiting.
getInput() : mixed
Get the request body input. Different RPC backends can override this to return an open stream to php://stdin, for instance - whatever is easiest to handle in the getResponse() method.
The base class implementation looks for $HTTP_RAW_POST_DATA and returns that if it's available; otherwise, it returns the contents of php://stdin.
The input - a string (default), a filehandle, etc.
request(string|\Horde_Url $url, string $method, array $params, \SoapClient $soap) : mixed
Builds a SOAP request and sends it to the SOAP server.
This statically called method is actually the SOAP client.
string|\Horde_Url | $url | Ignored. |
string | $method | The method to call. |
array | $params | A hash containing any necessary parameters for the method call. |
\SoapClient | $soap | A configured SoapClient object. |
The returned result from the method
factory(mixed $driver, $request, array $params = null) : \Horde_Rpc
Attempts to return a concrete RPC server instance based on $driver.
mixed | $driver | The type of concrete Horde_Rpc subclass to return. |
$request | ||
array | $params | A hash containing any additional configuration or connection parameters a subclass might need. |
The newly created concrete Horde_Rpc server instance, or an exception if there is an error.