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

	$wsdesc->classTypes = array();
	$wsdesc->structTypes = array();

	$wsdesc->classes = array(
		"CTasksWebService" => 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'
			),
			'GetAttachmentCollection' => array(
				'type' => 'public',
				'name' => 'GetAttachmentCollection',
				'input' => array(
					"listName" => array("varType" => "string"),
					"listItemID" => array("varType" => "string"),
				),
				'output' => array(
					'GetAttachmentCollectionResult' => array('varType' => 'any'),
				),
				'httpauth' => 'Y'
			),
			'DeleteAttachment' => array(
				'type' => 'public',
				'name' => 'DeleteAttachment',
				'input' => array(
					"listName" => array("varType" => "string"),
					"listItemID" => array("varType" => "string"),
					"url" => array("varType" => "string"),
				),
				'output' => array(
					'DeleteAttachmentResult' => array('varType' => 'string'),
				),
				'httpauth' => 'Y'
			),
			'AddAttachment' => array(
				'type' => 'public',
				'name' => 'AddAttachment',
				'input' => array(
					"listName" => array("varType" => "string"),
					"listItemID" => array("varType" => "string"),
					"fileName" => array("varType" => "string"),
					"attachment" => array("varType" => "base64Binary"),
				),
				'output' => array(
					'AddAttachmentResult' => array('varType' => 'string'),
				),
				'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;
}