SWinED


Для получения полного списка операций щелкните здесь.

Load

Отримати вхідну кореспонденцію за списком документів

Тест

Форма для тестирования доступна только для запросов от локальных компьютеров.

SOAP 1.1

В следующем примере показаны запрос и ответ SOAP 1.1. Вместо элементов-заполнителей следует подставить фактические значения.

POST /SwinEd.asmx HTTP/1.1
Host: obmen.sfs.gov.ua
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://swined/Load"

<?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>
    <Load xmlns="http://swined/">
      <recipientEDRPOU>string</recipientEDRPOU>
      <list>
        <DocumentId>
          <docCd>int</docCd>
          <docType>Original or Response</docType>
        </DocumentId>
        <DocumentId>
          <docCd>int</docCd>
          <docType>Original or Response</docType>
        </DocumentId>
      </list>
      <caName>string</caName>
      <cert>base64Binary</cert>
    </Load>
  </soap:Body>
</soap:Envelope>
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>
    <LoadResponse xmlns="http://swined/">
      <LoadResult>SWINED_OK or SWINED_TEMPORARY_UNAVAILABLE or SWINED_EDRPOU_INVALID or SWINED_EMPTY_DATA or SWINED_CRYPT_ERROR_UNSIGN or SWINED_CRYPT_ERROR_DECRYPT or SWINED_CRYPT_ERROR_INTERNAL or SWINED_SIGN_ABSENT or SWINED_SIGN_EDRPOU_MISCOMPARE or SWINED_DOC_EDRPOU_INVALID or SWINED_DOC_ID_INVALID or SWINED_DOC_EMPTY or SWINED_DOC_ALREADY_REGISTERED or SWINED_ORIG_DOC_ID_INVALID or SWINED_ORIG_DOC_ABSENT or SWINED_DOC_TYPE_INVALID or SWINED_DOC_TOO_BIG or SWINED_TICKET_INVALID_SIGNS_SEQUENCE or SWINED_TICKET_INVALID_CONTENT or SWINED_TICKET_DOC_ABSENT or SWINED_CRYPTOLIB_ABSENT or SWINED_CERTIFICATE_INVALID or SWINED_CHUNK_NUMBER_INVALID or SWINED_CHUNK_NUMBER_DUPLICATED or SWINED_CHUNKS_MISMATCHED</LoadResult>
      <restPreset>boolean</restPreset>
      <docs>
        <DocumentOutData>
          <deliver>dateTime</deliver>
          <docCd>int</docCd>
          <docId>string</docId>
          <docType>Original or Response</docType>
          <document>base64Binary</document>
          <income>dateTime</income>
          <originalDocId>string</originalDocId>
          <recipientDept>int</recipientDept>
          <recipientEDRPOU>string</recipientEDRPOU>
          <senderDept>int</senderDept>
          <senderEDRPOU>string</senderEDRPOU>
          <task>int</task>
          <ticket>base64Binary</ticket>
        </DocumentOutData>
        <DocumentOutData>
          <deliver>dateTime</deliver>
          <docCd>int</docCd>
          <docId>string</docId>
          <docType>Original or Response</docType>
          <document>base64Binary</document>
          <income>dateTime</income>
          <originalDocId>string</originalDocId>
          <recipientDept>int</recipientDept>
          <recipientEDRPOU>string</recipientEDRPOU>
          <senderDept>int</senderDept>
          <senderEDRPOU>string</senderEDRPOU>
          <task>int</task>
          <ticket>base64Binary</ticket>
        </DocumentOutData>
      </docs>
    </LoadResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

В следующем примере показаны запрос и ответ SOAP 1,2. Вместо элементов-заполнителей следует подставить фактические значения.

POST /SwinEd.asmx HTTP/1.1
Host: obmen.sfs.gov.ua
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Load xmlns="http://swined/">
      <recipientEDRPOU>string</recipientEDRPOU>
      <list>
        <DocumentId>
          <docCd>int</docCd>
          <docType>Original or Response</docType>
        </DocumentId>
        <DocumentId>
          <docCd>int</docCd>
          <docType>Original or Response</docType>
        </DocumentId>
      </list>
      <caName>string</caName>
      <cert>base64Binary</cert>
    </Load>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <LoadResponse xmlns="http://swined/">
      <LoadResult>SWINED_OK or SWINED_TEMPORARY_UNAVAILABLE or SWINED_EDRPOU_INVALID or SWINED_EMPTY_DATA or SWINED_CRYPT_ERROR_UNSIGN or SWINED_CRYPT_ERROR_DECRYPT or SWINED_CRYPT_ERROR_INTERNAL or SWINED_SIGN_ABSENT or SWINED_SIGN_EDRPOU_MISCOMPARE or SWINED_DOC_EDRPOU_INVALID or SWINED_DOC_ID_INVALID or SWINED_DOC_EMPTY or SWINED_DOC_ALREADY_REGISTERED or SWINED_ORIG_DOC_ID_INVALID or SWINED_ORIG_DOC_ABSENT or SWINED_DOC_TYPE_INVALID or SWINED_DOC_TOO_BIG or SWINED_TICKET_INVALID_SIGNS_SEQUENCE or SWINED_TICKET_INVALID_CONTENT or SWINED_TICKET_DOC_ABSENT or SWINED_CRYPTOLIB_ABSENT or SWINED_CERTIFICATE_INVALID or SWINED_CHUNK_NUMBER_INVALID or SWINED_CHUNK_NUMBER_DUPLICATED or SWINED_CHUNKS_MISMATCHED</LoadResult>
      <restPreset>boolean</restPreset>
      <docs>
        <DocumentOutData>
          <deliver>dateTime</deliver>
          <docCd>int</docCd>
          <docId>string</docId>
          <docType>Original or Response</docType>
          <document>base64Binary</document>
          <income>dateTime</income>
          <originalDocId>string</originalDocId>
          <recipientDept>int</recipientDept>
          <recipientEDRPOU>string</recipientEDRPOU>
          <senderDept>int</senderDept>
          <senderEDRPOU>string</senderEDRPOU>
          <task>int</task>
          <ticket>base64Binary</ticket>
        </DocumentOutData>
        <DocumentOutData>
          <deliver>dateTime</deliver>
          <docCd>int</docCd>
          <docId>string</docId>
          <docType>Original or Response</docType>
          <document>base64Binary</document>
          <income>dateTime</income>
          <originalDocId>string</originalDocId>
          <recipientDept>int</recipientDept>
          <recipientEDRPOU>string</recipientEDRPOU>
          <senderDept>int</senderDept>
          <senderEDRPOU>string</senderEDRPOU>
          <task>int</task>
          <ticket>base64Binary</ticket>
        </DocumentOutData>
      </docs>
    </LoadResponse>
  </soap12:Body>
</soap12:Envelope>