RowGetInfo
Возвращает данные о строке секции.
Запрос
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/RowGetInfo"
<?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>
<RowGetInfo xmlns="http://schemas.docsvision.com/Platform/2009-02-03/StorageServer/">
<sessionId>guid</sessionId>
<sectionId>guid</sectionId>
<rowId>guid</rowId>
</RowGetInfo>
</soap:Body>
</soap:Envelope>
- Параметры
-
- sessionId
-
Идентификатор пользовательской сессии
- sectionId
-
Идентификатор секции
- rowId
-
Идентификатор строки
Ответ
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>
<RowGetInfoResponse xmlns="http://schemas.docsvision.com/Platform/2009-02-03/StorageServer/">
<instanceID>guid</instanceID>
<parentRowId>guid</parentRowId>
<parentTreeRowId>guid</parentTreeRowId>
</RowGetInfoResponse>
</soap:Body>
</soap:Envelope>
Ответ содержит идентификатор карточки, в которой содержится строка, идентификатор родительской строки и идентификатор родительской строки в иерархической секции.
Пример запроса
session.headers['SOAPAction'] = "http://schemas.docsvision.com/Platform/2009-02-03/StorageServer/RowGetInfo" (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>
<RowGetInfo xmlns="http://schemas.docsvision.com/Platform/2009-02-03/StorageServer/">
<sessionId>6565c75b-298d-e511-9417-90e6ba57b9f8</sessionId>
<sectionId>7473F07F-11ED-4762-9F1E-7FF10808DDD1</sectionId>
<rowId>3A63F7B9-2106-4853-8100-CBDC19CB2841</rowId>
</RowGetInfo>
</soap:Body>
</soap:Envelope>""" (2)
response = session.post(url, data=body) (3)
print(response.content) (4)
1 | Изменяем цель запроса в заголовке запроса. |
2 | SOAP-сообщение. |
3 | Отправляем SOAP-сообщение. |
4 | Ответ SOAP. |