LockClear
Снимает блокировку с объекта.
Запрос
POST /DocsVision/StorageServer/StorageServerService.asmx HTTP/1.1
Host: DOCSVISION_SERVER.COM
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://schemas.docsvision.com/Platform/2009-02-03/StorageServer/LockClear"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<LockClear xmlns="http://schemas.docsvision.com/Platform/2009-02-03/StorageServer/">
<sessionId>guid</sessionId>
<resourceId>guid</resourceId>
<forceUnlock>boolean</forceUnlock>
</LockClear>
</soap:Body>
</soap:Envelope>
- Параметры
-
- sessionId
-
Идентификатор пользовательской сессии
- resourceId
-
Идентификатор объекта: карточки, файла или строки секции
- forceUnlock
-
Для снятия блокировки, установленной в другой сессии, указать
true
. Для принудительной разблокировки необходимы права администратора Docsvision.
Ответ
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<LockClearResponse xmlns="http://schemas.docsvision.com/Platform/2009-02-03/StorageServer/" />
</soap:Body>
</soap:Envelope>
Пример запроса
session.headers['SOAPAction'] = 'http://schemas.docsvision.com/Platform/2009-02-03/StorageServer/LockClear' (1)
body = """<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<LockClear xmlns="http://schemas.docsvision.com/Platform/2009-02-03/StorageServer/">
<sessionId>eccccc21-aa92-e511-9417-90e6ba57b9f8</sessionId>
<resourceId>A08B9D3E-A892-E511-9417-90E6BA57B9F8</resourceId>
<forceUnlock>true</forceUnlock>
</LockClear>
</soap:Body>
</soap:Envelope>""" (2)
response = session.post(url, data=body) (3)
1 | Изменяем цель запроса в заголовке запроса. |
2 | SOAP-сообщение. |
3 | Отправляем SOAP-сообщение. |