Exemple #1
0
 private function encodeSingleCall(RpcRequest $request)
 {
     $this->logger->notice("Performing a single XML call");
     $this->logger->debug("Data dump before encoding", $request->toArray());
     try {
         // encoding
         foreach ($request->getSpecialTypes() as $key => $value) {
             $this->encoder->setValueType($key, $value);
         }
         $encoded_request = $this->encoder->encodeCall($request->getMethod(), $request->getParameters());
     } catch (XmlrpcException $xe) {
         throw $xe;
     }
     $this->logger->debug("Data dump after encoding: " . $encoded_request);
     return $encoded_request;
 }