FileFind

Выполняет поиск файлов.

Запрос

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/FileFind"

<?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>
    <FileFind xmlns="http://schemas.docsvision.com/Platform/2009-02-03/StorageServer/">
      <sessionId>guid</sessionId>
      <searchFilter>string</searchFilter>
    </FileFind>
  </soap:Body>
</soap:Envelope>
Параметры
sessionId

Идентификатор пользовательской сессии

searchFilter

Поисковый запрос

Строка searchFilter должна соответствовать формату элемента FileSearch, приведенному в схеме ServerRequests.xsd:
<xsd:element name="FileSearch">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name="FullTextQuery" type="xsd:string" minOccurs="0"/>
      <xsd:element name="Mask" type="xsd:string" minOccurs="0"/>
      <xsd:element name="Date" minOccurs="0">
        <xsd:complexType>
          <xsd:attribute name="After" type="xsd:dateTime"/>
          <xsd:attribute name="Before" type="xsd:dateTime"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="Size" minOccurs="0">
        <xsd:complexType>
          <xsd:attribute name="Min" type="xsd:int"/>
          <xsd:attribute name="Max" type="xsd:int"/>
        </xsd:complexType>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

Ответ

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>
    <FileFindResponse xmlns="http://schemas.docsvision.com/Platform/2009-02-03/StorageServer/">
      <foundFiles>string</foundFiles>
    </FileFindResponse>
  </soap:Body>
</soap:Envelope>

Ответ содержит идентификаторы найденных файлов.

Пример запроса

session.headers['SOAPAction'] = "http://schemas.docsvision.com/Platform/2009-02-03/StorageServer/FileFind" (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>
    <FileFind xmlns="http://schemas.docsvision.com/Platform/2009-02-03/StorageServer/">
      <sessionId>6565c75b-298d-e511-9417-90e6ba57b9f8</sessionId>
      <searchFilter>&lt;FileSearch&gt;&lt;Mask&gt;*.doc*&lt;/Mask&gt;&lt;/FileSearch&gt;</searchFilter>
    </FileFind>
  </soap:Body>
</soap:Envelope>""" (2)

response = session.post(url, data=body) (3)

print(response.content) (4)
1 Изменяем цель запроса в заголовке запроса.
2 SOAP-сообщение.
3 Отправляем SOAP-сообщение.
4 Выводим ответ.