Shell Script Example

This example uses a shell script (command file) named to compile and run You can use JRockit, as shown here, or any JDK 6 that contains a JAX-WS 2.1 implementation.

# Compile
$ORACLE_BASE/jrockit_160_14_R27.6.5-32/bin/javac -cp $CLASSPATH
# Run
$ORACLE_BASE/jrockit_160_14_R27.6.5-32/jre/bin/java -cp $CLASSPATH CreateWebSource $@

To run the script, include these arguments on the command line:

  • webServiceURL: The Web Service URL for the Administration API in the following format. Replace host:port with the appropriate values.

  • userName: The administrative user (eqsys).

  • password: The password for the administrative user.

  • webSourceURL: The starting URL for crawling the Web source.

This command creates a source from the Web site:

sh http://host:7777/search/api/admin/AdminService eqsys password