Sun Microsystems J2ME Tool Storage User Manual


 
Appendix B Command Line Reference 113
B.6 Using the Stub Generator
J2ME Clients can use the Stub Generator to access web services. The wscompile
tool generates stubs, ties, serializers, and WSDL files used in JAX-RPC clients and
services. The tool reads a configuration file, which specifies either a WSDL file, a
model file, or a compiled service endpoint interface.
The syntax for the stub generator command is as follows:
wscompile [options] configuration_files
B.6.1 Options
TABLE 14 Options for the wscompile Command
Option Description
-d <output directory> specify where to place generated output files
-f:<features> enable the given features
-features:<features> same as -f:<features>
-g generate debugging info
-gen same as -gen:client
-gen:client generate client artifacts (stubs, etc.)
-
httpproxy:<host>:<p
ort>
specify a HTTP proxy server (port defaults to 8080)
-import generate interfaces and value types only
-model <file> write the internal model to the given file
-O optimize generated code
-s <directory> specify where to place generated source files
-verbose output messages about what the compiler is doing
-version print version information
-cldc1.0 Set the CLDC version to 1.0 (default) (float and double become
String)
-cldc1.1 Set the CLDC version to 1.1 (float and double are ok)
-cldc1.0info Show all CLDC 1.0 info/warning messages.