• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar_webservice.php
  • Класс: CCalendarWebService
  • Вызов: CCalendarWebService::GetWebServiceDesc
static function GetWebServiceDesc()
{
	$wsdesc = new CWebServiceDesc();
	$wsdesc->wsname = "bitrix.webservice.calendar";
	$wsdesc->wsclassname = "CCalendarWebService";
	$wsdesc->wsdlauto = true;
	$wsdesc->wsendpoint = CWebService::GetDefaultEndpoint();
	$wsdesc->wstargetns = CWebService::GetDefaultTargetNS();
	$wsdesc->classTypes = array();
	$wsdesc->structTypes = array();

	$wsdesc->classes = array(
		"CCalendarWebService" => array(
			"GetList" => array(
				"type" => "public",
				"name" => "GetList",
				"input" => array(
					"listName" => array("varType" => "string"),
				),
				"output"	=> array(
					"GetListResult" => array("varType" => 'any'),
				),
				'httpauth' => 'Y'
			),
			'GetListItemChanges' => array(
				'type' => 'public',
				'name' => 'GetListItemChanges',
				'input' => array(
					"listName" => array("varType" => "string"),
					"viewFields" => array("varType" => "any", 'strict'=> 'no'),
					'since' => array('varType' => 'string', 'strict' => 'no'),
				),
				'output' => array(
					'GetListItemChangesResult' => array('varType' => 'any'),
				),
				'httpauth' => 'Y'
			),
			'GetListItemChangesSinceToken' => array(
				'type' => 'public',
				'name' => 'GetListItemChangesSinceToken',
				'input' => array(
					"listName" => array("varType" => "string"),
					"viewFields" => array("varType" => "any", 'strict'=> 'no'),
					'query' => array('varType' => 'any', 'strict' => 'no'),
					'rowLimit' => array('varType' => 'string', 'strict' => 'no'),
					'changeToken' => array('varType' => 'string', 'strict' => 'no'),
				),
				'output' => array(
					'GetListItemChangesSinceTokenResult' => array('varType' => 'any'),
				),
				'httpauth' => 'Y'
			),
			'UpdateListItems' => array(
				'type' => 'public',
				'name' => 'UpdateListItems',
				'input' => array(
					"listName" => array("varType" => "string"),
					'updates' => array('varType' => 'any', 'strict' => 'no'),
				),
				'output' => array(
					'UpdateListItemsResult' => array('varType' => 'any')
				),
				'httpauth' => 'Y'

			),
		),
	);

	return $wsdesc;
}