|Via Web Services / Using a Client Application|
Use the following steps to generate the stub code for a Java web services client application, using the wsimport tool that is included with the Java Development Kit.
For example, to generate stub classes for the Geometry Service, enter the following command:
wsimport -s output/source -d output/classes http://<host:port>/soap/GeometryService?wsdl
After the command has been executed, the generated source .java files are placed within the directory you specified with the -s option, and the compiled .class files are placed within the directory you specified with the -d option.