Generating Stub Code for a Java Client - Latest

Spectrum Spatial Guide

Product type
Software
Portfolio
Locate
Product family
Spectrumâ„¢ software
Product
Spectrumâ„¢ software > Spatial > Spectrum Spatial
Version
Latest
ft:locale
en-US
Product name
Spectrum Technology Platform
ft:title
Spectrum Spatial Guide
Copyright
2025
First publish date
2007
ft:lastEdition
2026-02-13
ft:lastPublication
2026-02-13T17:17:07.540000
L1_Product_Gateway
Locate
L2_Product_Segment
Location Intelligence
L3_Product_Brand
Precisely Spectrum Spatial
L4_Investment_Segment
LI Enterprise
L5_Product_Group
Enterprise LI
L6_Product_Name
Spectrum Spatial

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.

  1. Open an xterm or command prompt window and change to the directory that contains the wsimport program, usually JDK_install_dir/bin/.
  2. At the command prompt, type wsimport -s source_dir -d classes_dirURL_TO_WSDL and press Enter.

    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.