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';
}
Here is the caller graph for this function:| & ilSoapClient::call | ( | $ | a_operation, | |
| $ | a_params | |||
| ) |
Definition at line 113 of file class.ilSoapClient.php.
References $res.
{
$res = $this->client->call($a_operation,$a_params);
if($error = $this->client->getError())
{
#$this->log->write('Error calling soap server: '.$this->getServer().' Error: '.$error);
}
return $res;
// Todo cannot check errors here since it's not possible to distinguish between 'timeout' and other errors.
}
| ilSoapClient::enabledWSDL | ( | ) |
Definition at line 89 of file class.ilSoapClient.php.
Referenced by init().
{
return (bool) $this->use_wsdl;
}
Here is the caller graph for this function:| 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;
}
Here is the caller graph for this function:| ilSoapClient::getServer | ( | ) |
Definition at line 62 of file class.ilSoapClient.php.
Referenced by init().
{
return $this->server;
}
Here is the caller graph for this function:| ilSoapClient::getTimeout | ( | ) |
Definition at line 71 of file class.ilSoapClient.php.
Referenced by init().
{
return $this->timeout ? $this->timeout : DEFAULT_TIMEOUT;
}
Here is the caller graph for this function:| 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);
}
Here is the call graph for this function:| ilSoapClient::init | ( | ) |
Definition at line 94 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,
false,
$this->getTimeout(),
$this->getResponseTimeout());
if($error = $this->client->getError())
{
$this->log->write('Error calling soap server: '.$this->getServer().' Error: '.$error);
return false;
}
return true;
}
Here is the call graph for this function:| 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.
1.7.1