2.2.6 wscompile
Generates stubs, ties, serializers, and WSDL files used in JAX-RPC clients and services.
Synopsis
wscompile [OPTION] configuration_file OPTION: [-classpath path] [-cp path] [-d directory] [-define servicename] [-f:features] [-features:features] [-g] [-gen] [-gen:client] [-gen:server] [-help] [-httpproxy:host:port] [-import] [-keep] [-model file] [-nd directory] [-O] [-s directory] [-verbose={false|true}] [-version] [-mapping file] [-security file]
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The wscompile command 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.
Execution permission
Superuser
Files
The tool reads a configuration file, which specifies a WSDL file, a model file, or a compiled service endpoint interface.
Arguments
- -classpath path | -cp path
-
Specifies where to find input class files.
Type: String
The following values can be specified:
-
Path of the input class files
Default value: N/A
-
- -d directory
-
Specifies where to place generated output files.
Type: String
The following values can be specified:
-
Directory path to place output files
Default value: N/A
-
- -define servicename
-
Defines a service.
Type: String
The following values can be specified:
-
Name of the service
Default value: N/A
-
- -f:features | -features:features
-
Enables the features specified.
Type: String
The following values can be specified:
-
datahandleronly
-
documentliteral
-
rpcliteral
-
explicitcontext
-
infix:<name>
-
infix=<name>
-
jaxbenumtype
-
nodatabinding
-
nonencodedtypes
-
nomultirefs
-
norpcstructures
-
novalidation
-
resolveidref
-
searchschema
-
serializeinterfaces
-
strict
-
useonewayoperations
-
wsi
-
unwrap
-
donotoverride
-
donotunwrap
Default value: N/A
-
- -g
-
Generates the debugging information.
- -gen
-
Generates the client artifacts (for example, stubs).
- -gen:client
-
Generates the client artifacts (for example, stubs).
- -gen:server
-
Generates the server artifacts (for example, ties).
- -help
-
Displays help.
- -httpproxy:host:port
-
Specifies a HTTP proxy server (port defaults to 8080).
Specify the host name of the proxy server for host. Specify the port number of the proxy server for port.
Type: Integer
The following values can be specified:
-
1 to 65535
Default value: Port: 8080
-
- -import
-
Generates interfaces and value types only.
- -keep
-
Stores the generated files.
- -model file
-
Writes the internal model to the given file.
Type: String
The following values can be specified:
-
Name of the file
Default value: N/A
-
- -nd directory
-
Specifies where to place the non-class generated files.
Type: String
The following values can be specified:
-
Path to the directory
Default value: N/A
-
- -O
-
Optimizes the generated code.
- -s directory
-
Specifies where to place the generated source files.
Type: String
The following values can be specified:
-
Path to the directory
Default value: N/A
-
- -verbose={false|true}
-
Outputs messages about the compiler actions.
Type: Boolean
The following values can be specified:
-
true
-
false
Default value: false
-
- -version
-
Prints the version information.
- -mapping file
-
Writes the JSR-109 mapping file to the given file.
Type: String
The following values can be specified:
-
Name of the file
Default value: N/A
-
- -security file
-
Displays the security configuration file.
Type: String
The following values can be specified:
-
Name of the file
Default value: N/A
-
Examples
wscompile -gen -f:infix:Name -d generated config.xml
Exit Status
Exit Status |
Explanation |
---|---|
0 |
subcommand executed successfully |
1 |
error in executing the subcommand |