Software AG Products 10.7 | Using CentraSite | Asset Management | Managing Assets through Command Line Interface | Importing an Asset | Importing XML Schema
 
Importing XML Schema
Pre-requisites:
To import an XML Schema through the CentraSite Command Line Interface, you must have the CentraSite Administrator role.
CentraSite provides a command tool named ImportSchema for this purpose.
*To import an XML Schema
*Run the command ImportSchema.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>ImportSchema -s <schema-file> [-help] [-accessuser <u>] [-accesspassword <p>][-o <organization>] [-v <user-version>] [-name <name>] [-attach <id>] [-reuse] [-newversion <current|all> [-h <host>] [-p <port>] [-dburl <dburl>] -user <user> -password <pwd>
The input parameters and options are:
Parameter
Description
-h <host>
The host name or IP address of the computer where the CentraSite registry or repository component is running.
If you omit this parameter, the importer assumes that the registry or repository is running on localhost.
-p <port>
The port number on which the CentraSite registry or repository is configured to listen for incoming requests.
If you omit this parameter, the importer assumes that the registry or repository is listening on the default port, 53307.
-dburl <dburl>
(Optional). The URL of the CentraSite registry. For example, http://localhost:53307/CentraSite/CentraSite.
Note:
If the registry or repository is running on a different machine and port number, you can use this parameter to specify its location instead of using the individual -h and -p parameters. (If you specify the -dburl parameter with the -h and -p parameters, the -h and -p parameters is ignored.)
-user <user>
The user ID of a registered CentraSite user who has the CentraSite Administrator role. For example, Administrator.
-password <pwd>
The password for the registered CentraSite user identified by the parameter -user.
-s <schema-file>
The absolute or relative path to the schema file that you want to import. If relative, the path should be relative to the location from where the command is executed.
-accessuser <u>
(Optional). The username for accessing the XML schema file.
-accesspassword <p>
(Optional). The password of the user identified by the parameter -accessuser for accessing the XML schema file.
-o <organization>
(Optional). The name of the organization into which you want to import the XML schema. If the organization name contains a space, enclose the name in double-quotes.
-name <name>
(Optional). The display name of the schema object.
-attach <id>
(Optional). Attach the XML schema to the existing service with an unique identifier.
-v <user-version>
(Optional). The user-defined version number for the XML schema.
-reuse
(Optional). Reuse the imported files instead of overwriting any data.
-help
(Optional). Display the full description of ImportSchema command (with detailed parameters and options description).
-createversion
(Optional). Create a new version of existing XML schema before the import.
The possible values are:
*current
*all
Example (all in one line):
The command for importing a XML schema into CentraSite running on host myhost registered under the organization MyOrg with an administrator account INTERNAL\Admin and password AdminPW would be:
C:\SoftwareAG\CentraSite\utilities>ImportSchema -dburl http://localhost:53307/CentraSite/CentraSite -user INTERNAL\Admin -password AdminPW -h myhost -p 53307 -s c:\MySchema.xsd -o MyOrg