Example #1
0
 /**
  * Service the provided request
  * @param string $requestXml The XML of the request
  * @return Response The response with the resulting value or a error message
  */
 public function service($requestXml)
 {
     try {
         $request = Request::fromXMLString($requestXml);
     } catch (XmlRpcException $e) {
         Zibo::getInstance()->runEvent(Zibo::EVENT_LOG, 'Invalid request', $e->getMessage(), 1, self::LOG_NAME);
         return new Response(null, 100 + $e->getCode(), $e->getMessage());
     }
     return $this->invokeRequest($request);
 }