Web Services Invocation Framework:
Invoking the SimpleSOAP Sample through a high level stub interface

First, you must set up the CLASSPATH in your environment.

This directory contains a file called Run.java that contains the main method. This is the logic that uses the generated stub interface to run the sample. So you can run this class, specifying on the command line the location of the WSDL file for the sample and the symbol for the company whose stock quote you are interested in. For example,
java simplesoap.client.stub.Run samples/simplesoap/StockquoteSOAP.wsdl IBM

To generate the stub interface, you can use any tool that generates Java interfaces for WSDL services using their port type descriptions, such as WSDL2Java from Axis. WSIF assumes a correspondence between the generated Java interface and the WSDL port type that has its abstract description as specified in the JAX-RPC specification. This particular sample used WSDL2Java in the following way:
java org.apache.axis.wsdl.WSDL2Java ../../StockquoteSOAP.wsdl
After the tool finished running, we deleted all the generated files except NetXmethodsServicesStockquoteStockQuotePortType.java (this is the java interface corresponding to the port type and is all that is required by WSIF).