Thursday, January 3, 2008

Building a Client of the Task Executor

To generate client of the vlab Task Executor service, first we have to create stub code and compile them.
If the service is running on localhost, WSDL file is located at,
http://localhost:8080/task-executor/services/TaskExecutor?wsdl
With this WSDL file, we can generate java classes with WSDL2Java included in the axis package.
java org.apache.axis.wsdl.WSDL2Java http://localhost:8080/task-executor/services/TaskExecutor?wsdl
Then compile/jar the java code.
Required jar files to run WSDL2Java are following:
  • axis-1.4.jar
  • activation-1.1.jar
  • commons-discovery-0.2.jar
  • saaj.jar
  • jaxrpc.jar
  • mail-1.4.jar
  • wsdl4j-1.5.1.jar

No comments: