Name¶
wsimport - Java(TM) API for XML Web Services (JAX-WS) 2.0
Specification Version: 2.1
Implementation Version: 2.1.1
Overview¶
The wsimport tool generates JAX-WS portable artifacts, such
as:
- o
- Service Endpoint Interface (SEI)
- o
- Service
- o
- Exception class mapped from wsdl:fault (if any)
- o
- Async Reponse Bean derived from response wsdl:message (if any)
- o
- JAXB generated value types (mapped java classes from schema types)
These artifacts can be packaged in a WAR file with the WSDL and
schema documents along with the endpoint implementation to be deployed. also
provides wsimport ant task, see Wsimport ant task @
https://jax-ws.dev.java.net/nonav/2.1.1/docs/wsimportant.html.
Launching wsimport¶
- o
- Solaris/Linux
- o
- Windows
- *
- \bin\wsimport.bat -help
Syntax¶
wsimport [options] <wsdl>
The following table lists the wsimport options.
0 |
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 |
0u |
0 |
Specify an HTTP proxy server (port defaults
to 8080) |
0u |
0 |
Specifying a target package via this command\-line option,
overrides any wsdl and schema binding customization for package name and
the default package name algorithm defined in the specification |
0u |
0 |
Specify where to place generated source files |
0u |
0 |
Output messages about what the compiler is doing |
0u |
0 |
Print version information |
0u |
0 |
\f2@WebServiceClient.wsdlLocation\fP value |
0u |
0 |
Generate code as per the given JAX\-WS specification version.
version 2.0 will generate compliant code for JAX\-WS 2.0 spec. |
0u |
?-d <directory> ????? |
+432u |
-432u |
?-b <path> ????? |
+432u |
-432u |
?-B <jaxbOption>????? |
+432u |
-432u |
?-catalog????? |
+432u |
-432u |
?-extension ????? |
+432u |
-432u |
?????? |
+0u |
-0u |
+432u |
-432u |
?-keep ???Keep generated files?? |
?-s <directory> ????? |
+432u |
-432u |
?-verbose ????? |
+432u |
-432u |
?-version ????? |
+432u |
-432u |
?????? |
+0u |
-0u |
+432u |
-432u |
?-target ????? |
+432u |
-432u |
?-quiet ???Suppress wsimport output?? |
0u |
Multiple JAX-WS and JAXB binding files can be specified using -b option and they can be used to customize various things like package names, bean names, etc. More information on JAX-WS and JAXB binding files can be found in the
customization documentation @
https://jax-ws.dev.java.net/nonav/2.1.1/docs/customizations.html.
The following table lists wsimport non-standard
options:
0 |
WSDL URI that specifies the file that contains authorization
information; this URI is in the following format: http://\f2<user
name>\fP:\f2<password>\fP@\f2<host name>\fP/\f2<Web
service name>\fP?wsdl |
0u |
0 |
Print debugging information. |
0u |
0 |
Enable binding of W3C \f2EndpointReferenceType\fP to Java. |
0u |
0 |
Do not compile generated Java files. |
0u |
?-XadditionalHeaders????? |
+528u |
-528u |
?-Xauthfile <file>????? |
+528u |
-528u |
?-Xdebug????? |
+528u |
-528u |
?????? |
+0u |
-0u |
+528u |
-528u |
?-Xnocompile????? |
+528u |
-528u |
0u |