wsimport(1)

πŸ“¦ version 8.504.u01, in arch rolling

✨ 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 πŸ’…

  • -d directory β€” Specifies where to place generated output files. πŸ“
  • -b path β€” Specifies external JAX-WS or JAXB binding files. Multiple JAX-WS and JAXB binding files can be specified with the -b option. 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
  • -B jaxbOption β€” 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 -catalog option supports the TR9401, XCatalog, and OASIS XML Catalog formats. 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 the wsimport command. the "bestie explain" button fr πŸ™ˆ
  • **-httpproxy: *host:port*** β€” Specifies an HTTP proxy server. The default is 8080`. 🌐
  • -keep β€” Keeps generated files. she's a keeper πŸ’–
  • -p name β€” 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 πŸ’…
  • -s directory β€” 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.
  • -wsdllocation location β€” Specifies the @WebServiceClient.wsdlLocation value.
  • -target β€” Generates code according to the specified JAX-WS specification version. Version 2.0 generates compliant code for the JAX-WS 2.0 specification.
  • -quiet β€” Suppresses the wsimport command output. 🀫 the introvert setting.
  • -b (again, because she's that important) β€” Multiple JAX-WS and JAXB binding files can be specified using the -b option, 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.
  • -Xauthfile file β€” 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 of W3C EndpointReferenceType to 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 ⭐


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
  • arch rolling: jdk8-openjdk 8.504.u01-1 Β· LicenseRef-Java
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms