Running the WSDL compiler script

The WSDL compiler script, nci_compilewsdl, creates a JAR file that contains a programmatic representation of the WSDL data.

Procedure

  1. Navigate to the $IMPACT_HOME/bin directory.
  2. In the command prompt, run the compiler script with the following options:
    nci_compilewsdl package_name wsdl_file destination

    Where:

    package_name
    The name of the JAR file (without the .jar suffix) to be created by the script.
    wsdl_file
    The name of the JAR file (without the .jar suffix) to be created by the script.
    destination
    The directory to copy the generated JAR file to, the default directory is $IMPACT_HOME/wslib.
    You must enter the entire command in one line, without any line breaks. For example, on UNIX:
    ./nci_compilewsdl amazon US.wsdl $IMPACT_HOME/wslib

    The example command compiles a WSDL file, US.wsdl that is in the current working directory, and creates the amazon.jar file, in the $IMPACT_HOME/wslib directory.

    Another example shows how to compile a WSDL file using a URL:
    ./nci_compilewsdl weather 
    http://www.webservicex.net/WeatherForecast.asmx?WSDL ../wslib

    The weather.jar file, is created under $IMPACT_HOME/wslib directory.

  3. Optional: If the destination directory for the script is different from the default one, you must copy the generated JAR file into the $IMPACT_HOME/wslib directory so that Netcool®/Impact policies can use it.