FileService


Click here for a complete list of operations.

UploadFile

Upload file to RamBase
- authKey = authentification key obtained from Login.Rambase.Net
- fileStream = file data as array of bytes
- fileName = file name
- fullDocid = RamBase FIL DOCID with database
- status = RamBase FIL Status
- subject = RamBase FIL Subject
- docRef = RamBase FIL DocRef
- docRefTable = RamBase FIL DocRefTable
- module = RamBase FIL Module
- verDescr = RamBase FIL VerDescr
- revision = RamBase FIL Revision
- sortPrio = RamBase FIL SortPrio
- additional = RamBase FIL Additional
- readAdmit = RamBase FIL ReadAdmit
- writeAdmit = RamBase FIL WriteAdmit
- readPerAdmit = RamBase FIL ReadPerAdmit
- writePerAdmit = RamBase FIL WritePerASdmit
(note: when uploading to an already existing FIL, use the '<blank>' value to set a parameter to empty)

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /FileService.asmx HTTP/1.1
Host: files.rambase.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://files.rambase.net/UploadFile"

<?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>
    <UploadFile xmlns="https://files.rambase.net">
      <authKey>string</authKey>
      <fileStream>base64Binary</fileStream>
      <fileName>string</fileName>
      <fullDocid>string</fullDocid>
      <status>string</status>
      <subject>string</subject>
      <docRef>string</docRef>
      <docRefTable>string</docRefTable>
      <module>string</module>
      <verDescr>string</verDescr>
      <revision>string</revision>
      <sortPrio>string</sortPrio>
      <additional>string</additional>
      <readAdmit>string</readAdmit>
      <writeAdmit>string</writeAdmit>
      <readPerAdmit>string</readPerAdmit>
      <writePerAdmit>string</writePerAdmit>
    </UploadFile>
  </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>
    <UploadFileResponse xmlns="https://files.rambase.net">
      <UploadFileResult>
        <FilFullDocid>string</FilFullDocid>
      </UploadFileResult>
    </UploadFileResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /FileService.asmx HTTP/1.1
Host: files.rambase.net
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>
    <UploadFile xmlns="https://files.rambase.net">
      <authKey>string</authKey>
      <fileStream>base64Binary</fileStream>
      <fileName>string</fileName>
      <fullDocid>string</fullDocid>
      <status>string</status>
      <subject>string</subject>
      <docRef>string</docRef>
      <docRefTable>string</docRefTable>
      <module>string</module>
      <verDescr>string</verDescr>
      <revision>string</revision>
      <sortPrio>string</sortPrio>
      <additional>string</additional>
      <readAdmit>string</readAdmit>
      <writeAdmit>string</writeAdmit>
      <readPerAdmit>string</readPerAdmit>
      <writePerAdmit>string</writePerAdmit>
    </UploadFile>
  </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>
    <UploadFileResponse xmlns="https://files.rambase.net">
      <UploadFileResult>
        <FilFullDocid>string</FilFullDocid>
      </UploadFileResult>
    </UploadFileResponse>
  </soap12:Body>
</soap12:Envelope>