21743
|
1 |
'\" t
|
|
2 |
.\" Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
|
3 |
.\"
|
|
4 |
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
5 |
.\"
|
|
6 |
.\" This code is free software; you can redistribute it and/or modify it
|
|
7 |
.\" under the terms of the GNU General Public License version 2 only, as
|
|
8 |
.\" published by the Free Software Foundation.
|
|
9 |
.\"
|
|
10 |
.\" This code is distributed in the hope that it will be useful, but WITHOUT
|
|
11 |
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
12 |
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
13 |
.\" version 2 for more details (a copy is included in the LICENSE file that
|
|
14 |
.\" accompanied this code).
|
|
15 |
.\"
|
|
16 |
.\" You should have received a copy of the GNU General Public License version
|
|
17 |
.\" 2 along with this work; if not, write to the Free Software Foundation,
|
|
18 |
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
19 |
.\"
|
|
20 |
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
21 |
.\" or visit www.oracle.com if you need additional information or have any
|
|
22 |
.\" questions.
|
|
23 |
.\"
|
|
24 |
.\" Arch: generic
|
|
25 |
.\" Software: JDK 8
|
|
26 |
.\" Date: 21 November 2013
|
|
27 |
.\" SectDesc: Java Web Services Tools
|
|
28 |
.\" Title: wsimport.1
|
|
29 |
.\"
|
|
30 |
.if n .pl 99999
|
|
31 |
.TH wsimport 1 "21 November 2013" "JDK 8" "Java Web Services Tools"
|
|
32 |
.\" -----------------------------------------------------------------
|
|
33 |
.\" * Define some portability stuff
|
|
34 |
.\" -----------------------------------------------------------------
|
|
35 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
36 |
.\" http://bugs.debian.org/507673
|
|
37 |
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
38 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
39 |
.ie \n(.g .ds Aq \(aq
|
|
40 |
.el .ds Aq '
|
|
41 |
.\" -----------------------------------------------------------------
|
|
42 |
.\" * set default formatting
|
|
43 |
.\" -----------------------------------------------------------------
|
|
44 |
.\" disable hyphenation
|
|
45 |
.nh
|
|
46 |
.\" disable justification (adjust text to left margin only)
|
|
47 |
.ad l
|
|
48 |
.\" -----------------------------------------------------------------
|
|
49 |
.\" * MAIN CONTENT STARTS HERE *
|
|
50 |
.\" -----------------------------------------------------------------
|
2
|
51 |
|
21743
|
52 |
.SH NAME
|
|
53 |
wsimport \- Generates JAX-WS portable artifacts that can be packaged in a web application archive (WAR) file and provides an Ant task\&.
|
|
54 |
.SH SYNOPSIS
|
|
55 |
.sp
|
|
56 |
.nf
|
|
57 |
|
|
58 |
\fBwsimport\fR [ \fIoptions\fR ] \fIwsdl\fR
|
|
59 |
.fi
|
|
60 |
.sp
|
|
61 |
.TP
|
|
62 |
\fIoptions\fR
|
|
63 |
The command-line options\&. See Options\&.
|
|
64 |
.TP
|
|
65 |
\fIwsdl\fR
|
|
66 |
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\&.
|
|
67 |
.SH DESCRIPTION
|
|
68 |
The \f3wsimport\fR command generates the following JAX-WS portable artifacts\&. These artifacts can be packaged in a WAR file with the WSDL and schema documents and the endpoint implementation to be deployed\&. The \f3wsimport\fR command also provides a \f3wsimport\fR 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
|
|
69 |
.TP 0.2i
|
|
70 |
\(bu
|
|
71 |
Service Endpoint Interface (SEI)
|
|
72 |
.TP 0.2i
|
|
73 |
\(bu
|
|
74 |
Service
|
|
75 |
.TP 0.2i
|
|
76 |
\(bu
|
|
77 |
Exception class is mapped from \f3wsdl:fault\fR (if any)
|
|
78 |
.TP 0.2i
|
|
79 |
\(bu
|
|
80 |
Async Response Bean is derived from response \f3wsdl:message\fR (if any)
|
|
81 |
.TP 0.2i
|
|
82 |
\(bu
|
|
83 |
JAXB generated value types (mapped java classes from schema types)
|
|
84 |
.PP
|
|
85 |
To start the \f3wsgen\fR command, do the following:
|
|
86 |
.PP
|
|
87 |
\fIOracle Solaris/Linux\fR:
|
|
88 |
.sp
|
|
89 |
.nf
|
|
90 |
\f3/bin/wsimport\&.sh \-help\fP
|
|
91 |
.fi
|
|
92 |
.nf
|
|
93 |
\f3\fP
|
|
94 |
.fi
|
|
95 |
.sp
|
|
96 |
\fIWindows\fR:
|
|
97 |
.sp
|
|
98 |
.nf
|
|
99 |
\f3\ebin\ewsimport\&.bat \-help\fP
|
|
100 |
.fi
|
|
101 |
.nf
|
|
102 |
\f3\fP
|
|
103 |
.fi
|
|
104 |
.sp
|
|
105 |
.SH OPTIONS
|
|
106 |
.TP
|
|
107 |
-d \fIdirectory\fR
|
2692
|
108 |
.br
|
21743
|
109 |
Specifies where to place generated output files\&.
|
|
110 |
.TP
|
|
111 |
-b \fIpath\fR
|
|
112 |
.br
|
|
113 |
Specifies external JAX-WS or JAXB binding files\&. Multiple JAX-WS and JAXB binding files can be specified with the \f3-b\fR 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 \fIUsers Guide\fR tab of WSDL Customization at http://jax-ws\&.java\&.net/nonav/2\&.1\&.1/docs/wsimportant\&.html
|
|
114 |
.TP
|
|
115 |
-B \fIjaxbOption\fR
|
|
116 |
.br
|
|
117 |
Passes the \f3jaxbOption\fR option to the JAXB schema compiler\&.
|
|
118 |
.TP
|
|
119 |
-catalog
|
|
120 |
.br
|
|
121 |
Specifies a catalog file to resolve external entity references\&. The \f3-catalog\fR option supports the TR9401, XCatalog, and OASIS XML Catalog formats\&. See the \fIUsers Guide\fR tab of the Catalog Support page at http://jax-ws\&.java\&.net/nonav/2\&.1\&.1/docs/catalog-support\&.html
|
|
122 |
.TP
|
|
123 |
-extension
|
|
124 |
.br
|
|
125 |
Allows vendor extensions\&. Use of extensions can result in applications that are not portable or that do not work with other implementations\&.
|
|
126 |
.TP
|
|
127 |
-help
|
|
128 |
.br
|
|
129 |
Displays a help message for the \f3wsimport\fR command\&.
|
|
130 |
.TP
|
|
131 |
-httpproxy: \fIhost\fR:\fIport\fR
|
|
132 |
.br
|
|
133 |
Specifies an HTTP proxy server\&. The default is 8080\&.
|
|
134 |
.TP
|
|
135 |
-keep
|
|
136 |
.br
|
|
137 |
Keeps generated files\&.
|
|
138 |
.TP
|
|
139 |
-p \fIname\fR
|
|
140 |
.br
|
|
141 |
Specifies a target package \fIname\fR to override the WSDL and schema binding customizations, and the default algorithm defined in the specification\&.
|
|
142 |
.TP
|
|
143 |
-s \fIdirectory\fR
|
|
144 |
.br
|
|
145 |
Specifies where to place generated source files\&.
|
|
146 |
.TP
|
|
147 |
-verbose
|
|
148 |
.br
|
|
149 |
Displays compiler messages\&.
|
|
150 |
.TP
|
|
151 |
-version
|
|
152 |
.br
|
|
153 |
Prints release information\&.
|
|
154 |
.TP
|
|
155 |
-wsdllocation \fIlocation\fR
|
|
156 |
.br
|
|
157 |
Specifies the \f3@WebServiceClient\&.wsdlLocation\fR value\&.
|
|
158 |
.TP
|
|
159 |
-target
|
9573
|
160 |
.br
|
21743
|
161 |
Generates code according to the specified JAX-WS specification version\&. Version 2\&.0 generates compliant code for the JAX-WS 2\&.0 specification\&.
|
|
162 |
.TP
|
|
163 |
-quiet
|
9573
|
164 |
.br
|
21743
|
165 |
Suppresses the \f3wsimport\fR command output\&.
|
|
166 |
.PP
|
|
167 |
Multiple \f3JAX-WS\fR and \f3JAXB\fR binding files can be specified using the \f3-b\fR option, and they can be used to customize various things such as package names and bean names\&. More information about \f3JAX-WS\fR and \f3JAXB\fR binding files can be found in the customization documentation at https://jax-ws\&.dev\&.java\&.net/nonav/2\&.1\&.1/docs/customizations\&.html
|
|
168 |
.SH NONSTANDARD\ OPTIONS
|
|
169 |
.TP
|
|
170 |
-XadditionalHeaders
|
9573
|
171 |
.br
|
21743
|
172 |
Maps headers not bound to a request or response message to Java method parameters\&.
|
|
173 |
.TP
|
|
174 |
-Xauthfile \fIfile\fR
|
9573
|
175 |
.br
|
21743
|
176 |
The WSDL URI that specifies the file that contains authorization information\&. This URI is in the following format:
|
|
177 |
|
|
178 |
http://\fIuser-name\fR:\f3password\fR@\fIhost-name\fR/\fIweb-service-name\fR>?wsdl\&.
|
|
179 |
.TP
|
|
180 |
-Xdebug
|
9573
|
181 |
.br
|
21743
|
182 |
Prints debugging information\&.
|
|
183 |
.TP
|
|
184 |
-Xno-addressing-databinding
|
9573
|
185 |
.br
|
21743
|
186 |
Enables binding of W3C EndpointReferenceType to Java\&.
|
|
187 |
.TP
|
|
188 |
-Xnocompile
|
9573
|
189 |
.br
|
21743
|
190 |
Does not compile the generated Java files\&.
|
|
191 |
.SH EXAMPLE
|
|
192 |
The following example generates the Java artifacts and compiles the artifacts by importing \f3http://stockquote\&.example\&.com/quote?wsdl\fR
|
|
193 |
.sp
|
|
194 |
.nf
|
|
195 |
\f3wsimport \-p stockquote http://stockquote\&.example\&.com/quote?wsdl\fP
|
|
196 |
.fi
|
|
197 |
.nf
|
|
198 |
\f3\fP
|
|
199 |
.fi
|
|
200 |
.sp
|
|
201 |
.SH SEE\ ALSO
|
|
202 |
.TP 0.2i
|
|
203 |
\(bu
|
|
204 |
wsgen(1)
|
|
205 |
.TP 0.2i
|
|
206 |
\(bu
|
|
207 |
The Tools tab of Wsimport Ant Task page http://jax-ws\&.java\&.net/nonav/2\&.1\&.1/docs/wsimportant\&.html
|
|
208 |
.TP 0.2i
|
|
209 |
\(bu
|
|
210 |
The \fIUsers Guide\fR tab of Catalog Support page http://jax-ws\&.java\&.net/nonav/2\&.1\&.1/docs/catalog-support\&.html
|
|
211 |
.TP 0.2i
|
|
212 |
\(bu
|
|
213 |
The \fIUsers Guide\fR tab of WSDL Customization page http://jax-ws\&.java\&.net/nonav/2\&.1\&.1/docs/wsimportant\&.html
|
|
214 |
.RE
|
|
215 |
.br
|
|
216 |
'pl 8.5i
|
|
217 |
'bp
|