Uploading XQuery Module through Command Line
To upload a custom XQuery module through the CentraSite Command Line (.cmd) Interface, you must have the CentraSite Administrator role.
CentraSite provides a Java tool named LoadModule.jar for this purpose.
Run the Java tool LoadModule.jar. The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteToolbox.cmd LoadModule.jar <CentraSite URL> <admin user id> <password> <module file name> [<module name>]
The input parameters are:
Parameter | Description |
CentraSite URL | The URL of the CentraSite registry. For example, http://localhost:53307/CentraSite/CentraSite. |
admin user id | The user ID of a registered CentraSite user who has the CentraSite Administrator role. For example, Administrator. |
password | The password for the CentraSite user identified by the parameter admin user id. |
module file name | Name of the XQuery file that contains the module and functions to upload. If the file name contains white spaces, enclose the name with " ". |
module name | Name of the XQuery module to upload. If the module name contains white spaces, enclose the name with " ". |
Example (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteToolbox.cmd LoadModule.jar http://localhost:53307/CentraSite/CentraSite DOMAIN\admin pAsSw0rD MyReport.xquery