Running the wsdl2java command file

Run the wsdl2java command file to build JAVA stubs, compile and jar the class, and clean up.

On Windows, the wsdl2java.bat file executes the following operations:

  • Builds the JAVA stubs from the wsdl
    %JAVA_HOME%/bin/java -cp %CLASS_PATH%
    org.apache.axis.wsdl.WSDL2Java http://%SC_SERVER%:%SC_PORT%
    /sc61server/ws/KnowledgeManagement.wsdl	
  • Compiles and jars the classes into libcenterpws.jar with the command, md classes
    %JAVA_HOME%/bin/javac -d classes -classpath %CLASS_PATH% .
    /com/peregrine/servicecenter/PWS/Common/*.java
    %JAVA_HOME%/bin/javac -d classes -classpath %CLASS_PATH%;. /; ./com/peregrine/servicecenter/PWS/*.java
    %JAVA_HOME%/bin/jar cvf ./lib/servicecenterpws.jar -C classes .
  • Cleans up with the following commands
    rd com /s /q
    rd classes /s /q

On UNIX, the wsdl2java.sh file executes the following operations:

  • Builds the JAVA stubs from the wsdl
    $JAVA_HOME/bin/java -cp $CLASS_PATH
    org.apache.axis.wsdl.WSDL2Java http://$$SC_SERVER:$SC_PORT
    /sc61server/ws/KnowledgeManagement.wsdl
  • Compiles and jars the classes into lib/servicecenterpws.jar with the command, mkdr classes
    $JAVA_HOME/bin/javac -d classes -classpath $CLASS_PATH$.
    /com/peregrine/servicecenter/PWS/Common/*.java
    $JAVA_HOME/bin/javac -d classes -classpath $CLASS_PATH:. /:./com/peregrine/servicecenter/PWS/*.java
    $JAVA_HOME%/bin/jar cvf./lib/servicecenterpws.jar -C classes.
  • Cleans up with the commands
    rd -R com
    rd -R classes

Configure the wsdl2java.bat file
Configure the wsdl2java.sh file