OS Manuals

/usr/lib/jvm/java-1.9-openjdk/bin/wsimport

Oracle OpenJDK 9

From openjdk-9 9.0.4-r8 (os), captured 2026-11-05 by running wsimport -help (exit 0). permalink

Usage: wsimport [options] <WSDL_URI>

where [options] include:
  -b <path>                 specify jaxws/jaxb binding files or additional schemas
                            (Each <path> must have its own -b)
  -B<jaxbOption>            Pass this option to JAXB schema compiler
  -catalog <file>           specify catalog file to resolve external entity references
                            supports TR9401, XCatalog, and OASIS XML Catalog format.
  -classpath <path>         specify where to find user class files and wsimport extensions
  -cp <path>                specify where to find user class files and wsimport extensions
  -d <directory>            specify where to place generated output files
  -encoding <encoding>      specify character encoding used by source files
  -extension                allow vendor extensions - functionality not specified
                            by the specification.  Use of extensions may
                            result in applications that are not portable or
                            may not interoperate with other implementations
  -help                     display help
  -httpproxy:<proxy>        set a HTTP proxy. Format is [user[:password]@]proxyHost:proxyPort
                            (port defaults to 8080)
  -J<javacOption>           pass this option to javac
  -keep                     keep generated files
  -p <pkg>                  specifies the target package
  -m <name>                 generate module-info.java with given Java module name
  -quiet                    suppress wsimport output
  -s <directory>            specify where to place generated source files
  -target <version>         generate code as per the given JAXWS spec version
                            Defaults to 2.2, Accepted values are 2.0, 2.1 and 2.2
                            e.g. 2.0 will generate compliant code for JAXWS 2.0 spec
  -verbose                  output messages about what the compiler is doing
  -version                  print version information
  -fullversion              print full version information
  -wsdllocation <location>  @WebServiceClient.wsdlLocation value
  -clientjar <jarfile>      creates the jar file of the generated artifacts along with the
                            WSDL metadata required for invoking the web service.
  -generateJWS              generate stubbed JWS implementation file
  -implDestDir <directory>  specify where to generate JWS implementation file
  -implServiceName <name>   local portion of service name for generated JWS implementation
  -implPortName <name>      local portion of port name for generated JWS implementation

Extensions:
  -XadditionalHeaders              map headers not bound to request or response message to
                                   Java method parameters
  -Xauthfile                       file to carry authorization information in the format
                                   http://username:password@example.org/stock?wsdl
  -Xdebug                          print debug information
  -Xno-addressing-databinding      enable binding of W3C EndpointReferenceType to Java
  -Xnocompile                      do not compile generated Java files
  -XdisableAuthenticator           disable Authenticator used by JAX-WS RI,
                                   -Xauthfile option will be ignored if set
  -XdisableSSLHostnameVerification disable the SSL Hostname verification while fetching
                                   wsdls

Examples:
  wsimport stock.wsdl -b stock.xml -b stock.xjb
  wsimport -d generated http://example.org/stock?wsdl
Options (32)
OptionDescriptionSource
-b pathspecify jaxws/jaxb binding files or additional schemas (Each <path> must have its own -b)help
-B jaxbOptionPass this option to JAXB schema compilerhelp
-catalog filespecify catalog file to resolve external entity references supports TR9401, XCatalog, and OASIS XML Catalog format.help
-classpath pathspecify where to find user class files and wsimport extensionshelp
-cp pathspecify where to find user class files and wsimport extensionshelp
-d directoryspecify where to place generated output fileshelp
-encoding encodingspecify character encoding used by source fileshelp
-extensionallow vendor extensions - functionality not specified by the specification.help
-helpdisplay helphelp
-httpproxy proxyset a HTTP proxy.help
-J javacOptionpass this option to javachelp
-keepkeep generated fileshelp
-p pkgspecifies the target packagehelp
-m namegenerate module-info.java with given Java module namehelp
-quietsuppress wsimport outputhelp
-s directoryspecify where to place generated source fileshelp
-target versiongenerate code as per the given JAXWS spec version Defaults to 2.2, Accepted values are 2.0, 2.1 and 2.2 e.g. 2.0 will generate compliant code for JAXWS 2.0 spechelp
-verboseoutput messages about what the compiler is doinghelp
-versionprint version informationhelp
-fullversionprint full version informationhelp
-wsdllocation location@WebServiceClient.wsdlLocation valuehelp
-clientjar jarfilecreates the jar file of the generated artifacts along with the WSDL metadata required for invoking the web service.help
-generateJWSgenerate stubbed JWS implementation filehelp
-implDestDir directoryspecify where to generate JWS implementation filehelp
-implServiceName namelocal portion of service name for generated JWS implementationhelp
-implPortName namelocal portion of port name for generated JWS implementationhelp
-XadditionalHeadersmap headers not bound to request or response message to Java method parametershelp
-Xauthfilefile to carry authorization information in the format http://username:password@example.org/stock?wsdlhelp
-Xdebugprint debug informationhelp
-Xno-addressing-databindingenable binding of W3C EndpointReferenceType to Javahelp
-Xnocompiledo not compile generated Java fileshelp
-XdisableAuthenticatordisable Authenticator used by JAX-WS RI,help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.