ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSoapClient Class Reference
+ Collaboration diagram for ilSoapClient:

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

Detailed Description

Definition at line 38 of file class.ilSoapClient.php.

Member Function Documentation

ilSoapClient::__setServer (   $a_server)

Definition at line 53 of file class.ilSoapClient.php.

References $ilSetting.

Referenced by ilSoapClient().

{
global $ilSetting;
if(strlen($a_server))
{
return $this->server = $a_server;
}
if(strlen(trim($ilSetting->get('soap_wsdl_path'))))
{
return $this->server = trim($ilSetting->get('soap_wsdl_path'));
}
$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 121 of file class.ilSoapClient.php.

References $res, and getServer().

{
$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.
}

+ Here is the call graph for this function:

ilSoapClient::enabledWSDL ( )

Definition at line 97 of file class.ilSoapClient.php.

References $use_wsdl.

Referenced by init().

{
return (bool) $this->use_wsdl;
}

+ Here is the caller graph for this function:

ilSoapClient::enableWSDL (   $a_status)

Definition at line 93 of file class.ilSoapClient.php.

{
$this->use_wsdl = (bool) $a_status;
}
ilSoapClient::getResponseTimeout ( )

Definition at line 88 of file class.ilSoapClient.php.

References $response_timeout.

Referenced by init().

+ Here is the caller graph for this function:

ilSoapClient::getServer ( )

Definition at line 70 of file class.ilSoapClient.php.

References $server.

Referenced by call(), and init().

{
return $this->server;
}

+ Here is the caller graph for this function:

ilSoapClient::getTimeout ( )

Definition at line 79 of file class.ilSoapClient.php.

References DEFAULT_TIMEOUT.

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 102 of file class.ilSoapClient.php.

References enabledWSDL(), getResponseTimeout(), getServer(), and getTimeout().

{
$this->client = new nusoap_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 84 of file class.ilSoapClient.php.

{
$this->response_timeout = $a_timeout;
}
ilSoapClient::setTimeout (   $a_timeout)

Definition at line 75 of file class.ilSoapClient.php.

{
$this->timeout = $a_timeout;
}

Field Documentation

ilSoapClient::$response_timeout = null

Definition at line 42 of file class.ilSoapClient.php.

Referenced by getResponseTimeout().

ilSoapClient::$server = ''

Definition at line 40 of file class.ilSoapClient.php.

Referenced by getServer().

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.

Referenced by enabledWSDL().


The documentation for this class was generated from the following file: