• Модуль: webservice
  • Путь к файлу: ~/bitrix/modules/webservice/classes/general/sharepoint/client.php
  • Класс: CSPListsClient
  • Вызов: CSPListsClient::Call
public function Call($method, $arParams = array())
{
	$REQUEST = new CSOAPRequest($method, WS_SP_SERVICE_NS, $arParams);
	$this->RESPONSE = $this->send($REQUEST);

	if (!$this->RESPONSE)
	{
		$GLOBALS['APPLICATION']->ThrowException('Connection error!');
		return false;
	}
	elseif ($this->RESPONSE->isFault())
	{
		$GLOBALS['APPLICATION']->ThrowException('SOAP Fault '.$this->RESPONSE->faultCode().': '.$this->RESPONSE->faultString());
		return false;
	}
	else
	{
		return true;
	}
}