wsimport(1)
β¨ wsimport β the girlies' guide to the wsimport(1) manual page β¨
okay so bestie, welcome to wsimport(1), a whole entire command from the Java Web Services Tools lineup π
π NAME π
wsimport β she generates JAX-WS portable artifacts that you can package in a web application archive (WAR) file π«Ά and she ALSO provides an Ant task. double threat, honestly.
πΈ SYNOPSIS πΈ
wsimport [ options ] wsdl
optionsβ the command-line options. See Options below, bestie, I got you πwsdlβ the file that contains the machine-readable description of how the web service can be called, what parameters it expects, and what data structures it returns. it's literally the blueprint fr fr π
π¦ DESCRIPTION π¦
okay so the wsimport command generates the following JAX-WS portable artifacts. these artifacts can be packaged in a WAR file together with the WSDL and schema documents and the endpoint implementation, all ready to be deployed. and get this β the wsimport command also provides a wsimport Ant task, see the Tools tab of the Wsimport Ant Task page at http://jax-ws.java.net/nonav/2.1.1/docs/wsimportant.html
- Service Endpoint Interface (SEI)
- Service
- Exception class is mapped from
wsdl:fault(if any) - Async Response Bean is derived from response
wsdl:message(if any) - JAXB generated value types (mapped java classes from schema types)
To start the wsgen command, do the following:
Oracle Solaris/Linux:
/bin/wsimport.sh -help
Windows:
\bin\wsimport.bat -help
π OPTIONS π
-ddirectory β Specifies where to place generated output files. π-bpath β Specifies external JAX-WS or JAXB binding files. Multiple JAX-WS and JAXB binding files can be specified with the-boption. You can use these files to customize package names, bean names, and so on. For more information about JAX-WS and JAXB binding files, see the Users Guide tab of WSDL Customization at http://jax-ws.java.net/nonav/2.1.1/docs/wsimportant.html-BjaxbOption β Passes the jaxbOption option to the JAXB schema compiler. passing the aux, iconic behavior π-catalogβ Specifies a catalog file to resolve external entity references. The-catalogoption supports theTR9401,XCatalog, andOASIS XML Catalogformats. See the Users Guide tab of the Catalog Support page at http://jax-ws.java.net/nonav/2.1.1/docs/catalog-support.html-extensionβ Allows vendor extensions. β οΈ Use of extensions can result in applications that are not portable or that do not work with other implementations. so like, cute but risky bestie.-helpβ Displays a help message for thewsimportcommand. the "bestie explain" button fr π- **
-httpproxy: *host:port*** β Specifies an HTTP proxy server. The default is8080`. π -keepβ Keeps generated files. she's a keeper π-pname β Specifies a target package name to override the WSDL and schema binding customizations, and the default algorithm defined in the specification. main character move, overriding the default π-sdirectory β Specifies where to place generated source files. π-verboseβ Displays compiler messages. she will NOT stop talking and we love her for it π£οΈβ¨-versionβ Prints release information.-wsdllocationlocation β Specifies the@WebServiceClient.wsdlLocationvalue.-targetβ Generates code according to the specified JAX-WS specification version. Version2.0generates compliant code for the JAX-WS 2.0 specification.-quietβ Suppresses thewsimportcommand output. π€« the introvert setting.-b(again, because she's that important) β Multiple JAX-WS and JAXB binding files can be specified using the-boption, and they can be used to customize various things such as package names and bean names. More information about JAX-WS and JAXB binding files can be found in the customization documentation at https://jax-ws.dev.java.net/nonav/2.1.1/docs/customizations.html
π₯ NONSTANDARD OPTIONS π₯
okay these ones are the off-menu picks, the secret menu, the "iykyk" section π
-XadditionalHeadersβ Maps headers not bound to a request or response message to Java method parameters.-Xauthfilefile β The WSDL URI that specifies the file that contains authorization information. This URI is in the following format:
http://user-name:password@host-name/web-service-name>?wsdl.
-Xdebugβ Prints debugging information. π-Xno-addressing-databindingβ Enables binding ofW3C EndpointReferenceTypeto Java.-Xnocompileβ Does not compile the generated Java files. no compiling, no problem, we're just vibing π¦
π EXAMPLE π
The following example generates the Java artifacts and compiles the artifacts by importing http://stockquote.example.com/quote?wsdl
wsimport -p stockquote http://stockquote.example.com/quote?wsdl
ate that example and left no crumbs π
β SEE ALSO β
wsgen(1)- The Tools tab of Wsimport Ant Task page http://jax-ws.java.net/nonav/2.1.1/docs/wsimportant.html
- The Users Guide tab of Catalog Support page http://jax-ws.java.net/nonav/2.1.1/docs/catalog-support.html
- The Users Guide tab of WSDL Customization page http://jax-ws.java.net/nonav/2.1.1/docs/wsimportant.html
and that's the whole page bestie β¨ this lil manual page is served to you fresh out of JDK 8, dated 21 November 2013 ππ go forth and import those WSDLs, you absolute legend π«Ά
π¦ where this page comes from
- alpine 3.24: openjdk8-doc 8.492.09-r0 Β· custom
- ubuntu jammy: openjdk-8-jdk-headless 8u312-b07-0ubuntu1
- ubuntu jammy: openjdk-8-jdk-headless 8u504-ga-1ubuntu1~22.04.3
- ubuntu noble: openjdk-8-jdk-headless 8u402-ga-8build1
- ubuntu noble: openjdk-8-jdk-headless 8u504-ga-1ubuntu1~24.04.3
- ubuntu questing: openjdk-8-jdk-headless 8u462-ga-1
- ubuntu questing: openjdk-8-jdk-headless 8u492-ga~us2-0ubuntu1~25.10.1
- ubuntu resolute: openjdk-8-jdk-headless 8u482-ga~us1-0ubuntu1
- ubuntu resolute: openjdk-8-jdk-headless 8u504-ga-1ubuntu1~26.04.3
- ubuntu stonking: openjdk-8-jdk-headless 8u504-ga-1ubuntu1
- Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms