33 define(
"RPC_TIMEOUT",0);
35 include_once(
'Services/WebServices/RPC/classes/class.ilRPCServerSettings.php');
64 $this->response_timeout = $a_response_timeout;
76 include_once
'XML/RPC.php';
77 if(!$response =& $this->rpc_client->send($this->rpc_message,$this->response_timeout))
79 $this->log->write(
"ilRPCServerAdapter: Communication error");
82 if($response->faultCode())
84 $this->log->write(
"ilRPCServerAdapter: Communication error: ". $response->faultString());
87 return XML_RPC_decode($response->value());
92 if(!include_once(
'XML/RPC.php'))
94 $this->log->write(
'ilLuceneRPCAdapter(): Cannot find pear library XML_RPC. Aborting');
95 $this->err->raiseError(
"Cannot find pear package 'XML_RPC'. Aborting ",$this->err->MESSAGE);
109 include_once
'XML/RPC.php';
111 $this->rpc_client =&
new XML_RPC_Client($this->settings_obj->getPath(),
112 $this->settings_obj->getHost(),
113 $this->settings_obj->getPort());
114 #$this->rpc_client->setDebug(1);
131 include_once
'XML/RPC.php';
133 $this->rpc_message =&
new XML_RPC_Message($a_message_name,$params);
137 $this->rpc_message->createPayload();