Objective

It allows to upload a new document into the library where the content is provided in Base64Binary. DST must be provided.

Parameters

ParameterDescriptionType
documentThe content of the document to upload to the DM Library.String
formThe name of the form used to create new folders.String
libraryeDOCS libraryString
userUser nameString
passwordUser passwordString
propertiesThis parameter represents all the properties that must be provided to create a document on the library and they are defined on the profile. Properties must be passed as a string.
String
clientOptional parameter for the client codeString
projectOptional parameter for the project codeString

Notes:

  • By default, the new document is created without security. The document MUST be closed during the process.
  • To specify the extension of a document, it is necessary to include the FILE_EXTENSION tag into the properties parameter.
    For instance, <FILE_EXTENSION>docx</FILE_EXTENSION>

Rest Invoke

  • http://localhost:port/GSService/xml/ or http://localhost:port/GSService/json/
  • UriTemplate:
    • “/UploadDocumentAsBinary/?document={document}&form={form}&library={library}&user={user}&password={password}&properties={properties}&client={client}&project={project}”
    • “/UploadDocumentAsBinaryDST/?document={document}&form={form}&library={library}&user={user}&dst={dst}&properties={properties}&client={client}&project={project}”

Example

http://localhost:8732/GSService/xml/UploadDocumentAsBinary/?document=RXN0byBlcyB1bmEgcHJ1ZWJhIHBhcmEgc3ViaXIgdW4gZG9jdW1lbnRvIHkgY29udmVydGlyIHN1IGNvbnRlbmlkbyBhIEJhc2U2NA==&form=LAWPROF&library=DMTESTLEGAL&user=admin&password=owc123&properties=SolutionSchemaadminDEFAULTDEFAULTDEFAULTadminSolutionSchemaACROBAT

The method returns the new document number if it has been properly uploaded into the library.

DST Example

http://localhost:8732/GSService/xml/UploadDocumentAsBinaryDST/?document=RXN0byBlcyB1bmEgcHJ1ZWJhIHBhcmEgc3ViaXIgdW4gZG9jdW1lbnRvIHkgY29udmVydGlyIHN1IGNvbnRlbmlkbyBhIEJhc2U2NA==&form=LAWPROF&library=DMTESTLEGAL&user=admin&dst=afd448a5d0f9b...55355b8c677ad16&properties=SolutionSchemaadminUTHOR_ID>DEFAULTDEFAULTDEFAULTadminTYPIST_ID>SolutionSchemaACROBAT