The wsimport command generates JAX-WS portable artifacts, such as service endpoint interfaces (SEIs), services, exception classes mapped from the wsdl:fault and soap:headerfault tags, asynchronous response beans derived from the wsdl:message tag, and JAX-B generated value types.
After generation, these artifacts can be packaged in a WAR file with the WSDL and schema documents along with the endpoint implementation and then deployed.
Invoking the wsimport command without specifying any arguments outputs the usage information.
external JAX-WS or JAX-B binding files. To specify multiple binding files, use multiple -b options.
specifies a catalog file to resolve external entity references. This option supports TR9401, XCatalog, and OASIS XML Catalog formats.
where to place the generated output files.
allows vendor extensions for functionality not included in the JAX-WS specification. Use of extensions may result in applications that are not portable or may not interoperate with other web service implementations.
prints usage information.
specifies an HTTP proxy server; defaults to port 8080.
keeps the generated files.
specifies the target package, overriding any WSDL and schema binding customization for package name, and the default package name algorithm defined in the JAX-WS specification.
directory for the generated source files.
output messages about what the compiler is doing.
prints version information.
The value of the @WebService.wsdlLocation and @WebServiceClient.wsdlLocation elements in the generated service endpoint interface and Service interface. It should be set to the URI of the web service WSDL file.
Multiple JAX-WS and JAX-B binding files can be specified using -b option and they can be used to customize things like package names and bean names. More information on JAX-WS and JAXB binding files can be found in the customization documentation included with this release.
wsimport -d outputdir -b custom.xml AddNumbers.wsdl
Where client side artifacts are generated in the outputdir directory for running the service as defined in the AddNumbers.wsdl file using binding customization as defined in custom.xml.
wsimport -d outputdir -s sourcedir -keep -b ../etc/custom.xml AddNumbers.wsdl
Where portable server-side artifacts are generated and preserved in the outputdir directory, Java programming language source files are generated and preserved in the sourcedir directory, and binding customization is defined in ../etc/custom.xml based on the AddNumbers.wsdl file.