Configure the runDocumentImport.sh file

User role: System Administrator (Note: User needs execute capability)

The runDocumentImport command file is run to import documents into Service Manager. Documents successfully imported remain in the migration root directory and rejected documents are placed in _rejects.

To configure the runDocumentImport.sh file, follow these steps:

  1. Set JAVA_HOME to your jdk directory. The version must be on the support matrix.
    See Support matrices on the Software Support Online site.

    SET JAVA_HOME=/jdk1.5.0_01
  2. Change SC_SERVER, SC_PORT, SC_USER, and SC_PASSWORD to reflect your service target.

    SET SC_SERVER=localhost
    SET SC_PORT=13080
    SET SC_USER=$1
    SET SC_PASSWORD=$2

    Note Setting the user name and password to the batch file parameters means that you do not need to store sensitive information in the batch file. The user must have the KMAdmin or SysAdmin execute capability in order to import the documents.

    For example, if SC_USER is rmorgan and SC_PASSWORD is pa$$w0rd, you can call runDocumentImport.sh like this:
    $runDocumentImport.sh rmorgan pa$$w0rd
    If no SC_USER or SC_PASSWORD is defined, the default user is falcon with a blank password.

  3. Change MIGRATION_DOCS_DIR to specify location of the documents being imported.

    MIGRATION_DOCS_DIR=/MigrationDocs

  4. Change DOC_STATUS to default status of the imported documents.

    DOC_STATUS=internal

  5. Set the CLASSPATH.

    CLASS_PATH=./lib/activation-1.0.2.jar:./lib/axis-1.2.jar:.
    /lib/commons-discovery-0.2.jar:./lib
    /commons-logging-1.0.3.jar:./lib/jaxrpc-1.1.jar:./lib
    /kmimport.jar:./lib/log4j-1.2.8.jar:./lib/mail-1.3.2.jar:.
    /lib/saaj-1.2.jar:./lib/wsdl4j-1.5.1.jar:.
    /lib/servicecenterpws.jar:

Configure the wsdl2java.sh file