Public Member Functions | |
ilSoapClient ($a_server= '') | |
__setServer ($a_server) | |
getServer () | |
setTimeout ($a_timeout) | |
getTimeout () | |
setResponseTimeout ($a_timeout) | |
getResponseTimeout () | |
enableWSDL ($a_status) | |
enabledWSDL () | |
init () | |
& | call ($a_operation, $a_params) |
Data Fields | |
$server = '' | |
$timeout = null | |
$response_timeout = null | |
$use_wsdl = true |
Definition at line 38 of file class.ilSoapClient.php.
ilSoapClient::__setServer | ( | $ | a_server | ) |
Definition at line 53 of file class.ilSoapClient.php.
Referenced by ilSoapClient().
{ if(strlen($a_server)) { return $this->server = $a_server; } $this->server = ILIAS_HTTP_PATH.'/webservice/soap/server.php?wsdl'; }
& ilSoapClient::call | ( | $ | a_operation, | |
$ | a_params | |||
) |
Definition at line 112 of file class.ilSoapClient.php.
References $res.
ilSoapClient::enabledWSDL | ( | ) |
Definition at line 89 of file class.ilSoapClient.php.
Referenced by init().
{ return (bool) $this->use_wsdl; }
ilSoapClient::enableWSDL | ( | $ | a_status | ) |
Definition at line 85 of file class.ilSoapClient.php.
{ $this->use_wsdl = (bool) $a_status; }
ilSoapClient::getResponseTimeout | ( | ) |
Definition at line 80 of file class.ilSoapClient.php.
Referenced by init().
{
return $this->response_timeout;
}
ilSoapClient::getServer | ( | ) |
Definition at line 62 of file class.ilSoapClient.php.
Referenced by init().
{
return $this->server;
}
ilSoapClient::getTimeout | ( | ) |
Definition at line 71 of file class.ilSoapClient.php.
Referenced by init().
{
return $this->timeout ? $this->timeout : DEFAULT_TIMEOUT;
}
ilSoapClient::ilSoapClient | ( | $ | a_server = '' |
) |
Definition at line 45 of file class.ilSoapClient.php.
References $ilLog, and __setServer().
{ global $ilLog; $this->log =& $ilLog; $this->__setServer($a_server); }
ilSoapClient::init | ( | ) |
Definition at line 95 of file class.ilSoapClient.php.
References enabledWSDL(), getResponseTimeout(), getServer(), and getTimeout().
{ $this->client = new soap_client($this->getServer(), $this->enabledWSDL(), false, // no proxy support in the moment false, false, $this->getTimeout(), $this->getResponseTimeout()); if($error = $this->client->getError()) { $this->log->write('Error calling soap server: '.$this->getServer().' Error: '.$error); } return true; }
ilSoapClient::setResponseTimeout | ( | $ | a_timeout | ) |
Definition at line 76 of file class.ilSoapClient.php.
{ $this->response_timeout = $a_timeout; }
ilSoapClient::setTimeout | ( | $ | a_timeout | ) |
Definition at line 67 of file class.ilSoapClient.php.
{ $this->timeout = $a_timeout; }
ilSoapClient::$response_timeout = null |
Definition at line 42 of file class.ilSoapClient.php.
ilSoapClient::$server = '' |
Definition at line 40 of file class.ilSoapClient.php.
ilSoapClient::$timeout = null |
Definition at line 41 of file class.ilSoapClient.php.
ilSoapClient::$use_wsdl = true |
Definition at line 43 of file class.ilSoapClient.php.