Sun GlassFish Enterprise Server v2.1.1 Developer's Guide

Attributes of wsimport

The following table describes attributes for the wsimport task.

Table 3–14 The wsimport Attributes

Attribute 

Default 

Description 

wsdl

none 

Specifies the name of the WSDL file. 

destdir

current directory 

(optional) Specifies where to place the output generated classes. 

sourcedestdir

current directory 

(optional) Specifies where to place generated source files. Used only if the keep attribute is set to true.

keep

false

(optional) If true, keeps generated files.

verbose

false

(optional) If true, outputs compiler messages.

binding

none 

(optional) Specifies external JAX-WS or JAXB binding files. JAX-WS and JAXB binding files can 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. 

extension

false

(optional) If true, allows vendor extensions not in the specification. Use of extensions may result in applications that are not portable and may not interoperate with other implementations.

wsdllocation

none 

(optional) Specifies the value of @WebService.wsdlLocation and @WebServiceClient.wsdlLocation annotation elements for the generated SEI and Service interface. This should be set to the URI of the web service WSDL file.

catalog

none 

(optional) Specifies the catalog file to resolve external entity references. Supported formats are TR9401, XCatalog, and OASIS XML Catalog. Additionally, the Ant xmlcatalog type can be used to resolve entities.

package

none 

(optional) 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.