Objective
This method tests the connection with DM server allowing publish documents as a version or subversion.
Parameters
Parameter | Description | Type |
library | eDOCS library | String |
user | User name | String |
password | User password | String |
form | Form name used to search a document | String |
docNumber | Document number. Only one document number is allowed | String |
version | Document version number. Example: 1, 2, 3… | Long |
subVersion | Subversion (Example: A, B, C). Empty by default | String |
client | Optional parameter for the client code | String |
project | Optional parameter for the project code | String |
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.