Sun Microsystems J2ME manual Using the Stub Generator, Options for the wscompile Command

Models: J2ME

1 134
Download 134 pages 62.02 Kb
Page 125
Image 125

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> -f:<features> -features:<features>

-g

-gen

-gen:client

-

httpproxy:<host>:<p

ort>

-import

-model <file> -O

-s<directory> -verbose-version-cldc1.0

-cldc1.1

-cldc1.0info

specify where to place generated output files enable the given features

same as -f:<features> generate debugging info same as -gen:client

generate client artifacts (stubs, etc.)

specify a HTTP proxy server (port defaults to 8080)

generate interfaces and value types only write the internal model to the given file optimize generated code

specify where to place generated source files output messages about what the compiler is doing print version information

Set the CLDC version to 1.0 (default) (float and double become String)

Set the CLDC version to 1.1 (float and double are ok) Show all CLDC 1.0 info/warning messages.

Appendix B Command Line Reference 113

Page 125
Image 125
Sun Microsystems J2ME manual Using the Stub Generator, Options for the wscompile Command