public function handle($URI = null)
    {
        if ($URI === null) {
            $URI = 'php://input';
        }

        try {
            $request    = $this->XRLDecoder->decodeRequest($URI);
            $procedure  = $request->getProcedure();
            // Necessary to keep references.
            $params     = $request->getParams();

            $result     = $this->call($procedure, $params);
            $response   = $this->XRLEncoder->encodeResponse($result);
        } catch (\Exception $result) {
            $response   = $this->XRLEncoder->encodeError($result);
        }

        return new \fpoirotte\XRL\Response($response);
    }
public function handle($URI = null)
    {
        if ($URI === null) {
            $URI = 'php://input';
        }

        try {
            $request    = $this->XRLDecoder->decodeRequest($URI);
            $procedure  = $request->getProcedure();
            // Necessary to keep references.
            $params     = $request->getParams();

            $result     = $this->call($procedure, $params);
            $response   = $this->XRLEncoder->encodeResponse($result);
        } catch (\Exception $result) {
            $response   = $this->XRLEncoder->encodeError($result);
        }

        return new \fpoirotte\XRL\Response($response);
    }
public function handle ( $ URI = null ) { if ( $ URI === null ) { $ URI = 'php://input' ; } try { $ request = $ this -> XRLDecoder -> decodeRequest ( $ URI ) ; $ procedure = $ request -> getProcedure ( ) ; // Necessary to keep references. $ params = $ request -> getParams ( ) ; $ result = $ this -> call ( $ procedure , $ params ) ; $ response = $ this -> XRLEncoder -> encodeResponse ( $ result ) ; } catch ( \ Exception $ result ) { $ response = $ this -> XRLEncoder -> encodeError ( $ result ) ; } return new \ fpoirotte \ XRL \ Response ( $ response ) ; }
Handle an XML-RPC request and return a response for it.

\param string $URI
(optional) URI to the XML-RPC request to process,
If omitted, this method will try to retrieve the request
directly from the data POST'ed to this script.

\retval fpoirotte::XRL::ResponseInterface
The response for that request. This response
may indicate either success or failure of the
Remote Procedure Call.

\note
Use the "data://" wrapper to pass the serialized
request as raw data.

\see
See http://php.net/wrappers.data.php for information
on how to use the "data://" wrapper.
Handle an XML - RPC request and return a response for it .