Objective

This method tests the connection with DM server allowing publish documents as a version or subversion.

Parameters

ParameterDescriptionType
libraryeDOCS libraryString
userUser nameString
passwordUser passwordString
formForm name used to search a documentString
docNumberDocument number. Only one document number is allowedString
versionDocument version number. Example: 1, 2, 3…
Long
subVersionSubversion (Example: A, B, C).

Empty by default

String
clientOptional parameter for the client codeString
projectOptional parameter for the project codeString

Rest Invoke

  • http://localhost:port/GSService/xml/ or http://localhost:port/GSService/json/
  • UriTemplate:
    • “/PublishVersionOrSubversion/?library={library}&user={user}&password={password}&form={form}&docNumber={docNumber}&version={version}&subVersion={subVersion} &client={client}&project={project}”
    • “/PublishVersionOrSubversionDST/?library={library}&user={user}&dst={dst}&form={form}&docNumber={docNumber}&version={version}&subVersion={subVersion}&client={client}&project={project}”

Example

http://localhost:8731/GSService/Xml/PublishVersionOrSubversion/library=DMTESTLEGAL16&user=admin&password=****&form=LAWPROF&docNumber=70&version=1&subVersion=!

Return a value 0 for success actions or an exception in case of error.

DST Example

http://localhost:8731/GSService/Xml/PublishVersionOrSubversionDST/?library=DMTESTLEGAL16&user=admin&dst=afd448a5d0f9b89f7c9fe2761d9...aa00dde14a8c677ad16b7540fe6f75a41e&form=LAWPROF&docNumber=70&version=1&subVersion=!

Error

Check the edocs.log file if errors arise in the unlock process.