wsgen.1 11.5 KB
Newer Older
1
." Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
D
duke 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
."
." This code is free software; you can redistribute it and/or modify it
." under the terms of the GNU General Public License version 2 only, as
." published by the Free Software Foundation.
."
." This code is distributed in the hope that it will be useful, but WITHOUT
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
." version 2 for more details (a copy is included in the LICENSE file that
." accompanied this code).
."
." You should have received a copy of the GNU General Public License version
." 2 along with this work; if not, write to the Free Software Foundation,
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
."
18 19 20
." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
." or visit www.oracle.com if you need additional information or have any
." questions.
D
duke 已提交
21
."
22
.TH wsgen 1 "10 May 2011"
T
tbell 已提交
23 24
.SH "Name"
wsgen \- Java(TM) API for XML Web Services (JAX\-WS) 2.0
D
duke 已提交
25
.LP
T
tbell 已提交
26 27 28
\f3Specification Version:\fP 2.1
.br
\f3Implementation Version:\fP 2.1.1
D
duke 已提交
29
.LP
T
tbell 已提交
30 31 32 33 34 35 36 37
The \f2wsgen\fP tool generates JAX\-WS portable artifacts used in JAX\-WS web services. The tool reads a web service endpoint implementation class (SEI) and generates all the required artifacts for web service deployment, and invocation
.SH "Overview"
.LP
The \f2wsgen\fP tool generates JAX\-WS portable artifacts used in JAX\-WS web services. The tool reads a web service endpoint class and generates all the required artifacts for web service deployment, and invocation. JAXWS 2.1.1 RI also provides a wsgen ant task, see 
.na
\f2Wsgen ant task\fP @
.fi
https://jax\-ws.dev.java.net/nonav/2.1.1/docs/wsgenant.html for details.
D
duke 已提交
38
.LP
T
tbell 已提交
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
.SH "Launching wsgen"
.RS 3
.TP 2
o
\f3Solaris/Linux\fP 
.RS 3
.TP 2
*
\f2export JAXWS_HOME=/pathto/jaxws\-ri\fP 
.TP 2
*
\f2$JAXWS_HOME/bin/wsgen.sh \-help\fP 
.RE
.TP 2
o
\f3Windows\fP 
.RS 3
.TP 2
*
\f2set JAXWS_HOME=c:\\pathto\\jaxws\-ri\fP 
.TP 2
*
\f2%JAXWS_HOME%\\bin\\wsgen.bat \-help\fP 
.RE
.RE
D
duke 已提交
64 65

.LP
T
tbell 已提交
66
.SH "Syntax"
D
duke 已提交
67 68 69
.nf
\f3
.fl
T
tbell 已提交
70 71 72
wsgen [options] <SEI>\fP
.br
\f3
D
duke 已提交
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
.fl
\fP
.fi
.LP
The following table lists the \f2wsgen\fP options.
.br
.LP
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
.de 35
.ps \n(.s
.vs \n(.vu
.in \n(.iu
.if \n(.u .fi
.if \n(.j .ad
.if \n(.j=0 .na
..
.nf
.nr #~ 0
.if n .nr #~ 0.6n
.ds #d .d
.if \(ts\n(.z\(ts\(ts .ds #d nl
.fc
.nr 33 \n(.s
.rm 80 81
.nr 34 \n(.lu
.eo
.am 81
.br
.di a+
.35
.ft \n(.f
.ll \n(34u*1u/3u
.if \n(.l<\n(81 .ll \n(81u
.in 0
Specify where to find input class files
.br
.di
.nr a| \n(dn
.nr a- \n(dl
..
.ec \
.eo
.am 81
.br
.di b+
.35
.ft \n(.f
.ll \n(34u*1u/3u
.if \n(.l<\n(81 .ll \n(81u
.in 0
Same as \f2\-classpath <path>\fP
.br
.di
.nr b| \n(dn
.nr b- \n(dl
..
.ec \
.eo
.am 81
.br
.di c+
.35
.ft \n(.f
.ll \n(34u*1u/3u
.if \n(.l<\n(81 .ll \n(81u
.in 0
Specify where to place generated output files
.br
.di
.nr c| \n(dn
.nr c- \n(dl
..
.ec \
.eo
.am 81
.br
.di d+
.35
.ft \n(.f
.ll \n(34u*1u/3u
.if \n(.l<\n(81 .ll \n(81u
.in 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
.br
.di
.nr d| \n(dn
.nr d- \n(dl
..
.ec \
.eo
.am 81
.br
.di e+
.35
.ft \n(.f
.ll \n(34u*1u/3u
.if \n(.l<\n(81 .ll \n(81u
.in 0
Used only in conjunction with the \-wsdl option. Specify where to place generated resource files such as WSDLs
.br
.di
.nr e| \n(dn
.nr e- \n(dl
..
.ec \
.eo
.am 81
.br
.di f+
.35
.ft \n(.f
.ll \n(34u*1u/3u
.if \n(.l<\n(81 .ll \n(81u
.in 0
Specify where to place generated source files
.br
.di
.nr f| \n(dn
.nr f- \n(dl
..
.ec \
.eo
.am 81
.br
.di g+
.35
.ft \n(.f
.ll \n(34u*1u/3u
.if \n(.l<\n(81 .ll \n(81u
.in 0
Output messages about what the compiler is doing
.br
.di
.nr g| \n(dn
.nr g- \n(dl
..
.ec \
.eo
.am 81
.br
.di h+
.35
.ft \n(.f
.ll \n(34u*1u/3u
.if \n(.l<\n(81 .ll \n(81u
.in 0
Print version information. Use of this option will ONLY print version information. Normal processing will not occur.
.br
.di
.nr h| \n(dn
.nr h- \n(dl
..
.ec \
.eo
T
tbell 已提交
227
.am 81
D
duke 已提交
228 229 230 231 232
.br
.di i+
.35
.ft \n(.f
.ll \n(34u*1u/3u
T
tbell 已提交
233
.if \n(.l<\n(81 .ll \n(81u
D
duke 已提交
234
.in 0
T
tbell 已提交
235
By default \f2wsgen\fP does not generate a WSDL file. This flag is optional and will cause \f2wsgen\fP to generate a WSDL file and is usually only used so that the developer can look at the WSDL before the endpoint is deploy. The \f2protocol\fP is optional and is used to specify what protocol should be used in the \f2wsdl:binding\fP. Valid protocols include: \f2soap1.1\fP and \f2Xsoap1.2\fP. The default is \f2soap1.1\fP. \f2Xsoap1.2\fP is not standard and can only be used in conjunction with the \f2\-extension\fP option.
D
duke 已提交
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250
.br
.di
.nr i| \n(dn
.nr i- \n(dl
..
.ec \
.eo
.am 81
.br
.di j+
.35
.ft \n(.f
.ll \n(34u*1u/3u
.if \n(.l<\n(81 .ll \n(81u
.in 0
T
tbell 已提交
251
Used only in conjunction with the \f2\-wsdl\fP option. Used to specify a particular \f2wsdl:service\fP name to be generated in the WSDL. Example, \f2\-servicename "{http://mynamespace/}MyService"\fP
D
duke 已提交
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270
.br
.di
.nr j| \n(dn
.nr j- \n(dl
..
.ec \
.eo
.am 81
.br
.di k+
.35
.ft \n(.f
.ll \n(34u*1u/3u
.if \n(.l<\n(81 .ll \n(81u
.in 0
Used only in conjunction with the \f2\-wsdl\fP option. Used to specify a particular \f2wsdl:port\fP name to be generated in the WSDL. Example, \f2\-portname "{http://mynamespace/}MyPort"\fP
.br
.br
.di
T
tbell 已提交
271 272
.nr k| \n(dn
.nr k- \n(dl
D
duke 已提交
273 274 275 276 277 278 279 280
..
.ec \
.35
.nf
.ll \n(34u
.nr 80 0
.nr 38 \w\f3Option\fP
.if \n(80<\n(38 .nr 80 \n(38
T
tbell 已提交
281 282 283
.nr 38 \w\f4\-classpath <path>\fP
.if \n(80<\n(38 .nr 80 \n(38
.nr 38 \w\f4\-cp <path>\fP
D
duke 已提交
284
.if \n(80<\n(38 .nr 80 \n(38
T
tbell 已提交
285
.nr 38 \w\f4\-d <directory>\fP
D
duke 已提交
286
.if \n(80<\n(38 .nr 80 \n(38
T
tbell 已提交
287
.nr 38 \w\f4\-extension\fP
D
duke 已提交
288
.if \n(80<\n(38 .nr 80 \n(38
T
tbell 已提交
289
.nr 38 \w\f4\-help\fP
D
duke 已提交
290
.if \n(80<\n(38 .nr 80 \n(38
T
tbell 已提交
291
.nr 38 \w\f4\-keep\fP
D
duke 已提交
292
.if \n(80<\n(38 .nr 80 \n(38
T
tbell 已提交
293
.nr 38 \w\f4\-r <directory>\fP
D
duke 已提交
294
.if \n(80<\n(38 .nr 80 \n(38
T
tbell 已提交
295
.nr 38 \w\f4\-s <directory>\fP
D
duke 已提交
296
.if \n(80<\n(38 .nr 80 \n(38
T
tbell 已提交
297
.nr 38 \w\f4\-verbose\fP
D
duke 已提交
298
.if \n(80<\n(38 .nr 80 \n(38
T
tbell 已提交
299
.nr 38 \w\f4\-version\fP
D
duke 已提交
300
.if \n(80<\n(38 .nr 80 \n(38
T
tbell 已提交
301
.nr 38 \w\f4\-wsdl[:protocol]\fP
D
duke 已提交
302
.if \n(80<\n(38 .nr 80 \n(38
T
tbell 已提交
303
.nr 38 \w\f4\-servicename <name>\fP
D
duke 已提交
304
.if \n(80<\n(38 .nr 80 \n(38
T
tbell 已提交
305
.nr 38 \w\f4\-portname <name>\fP
D
duke 已提交
306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
.if \n(80<\n(38 .nr 80 \n(38
.80
.rm 80
.nr 81 0
.nr 38 \w\f3Description\fP
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \wDisplay help
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \wKeep generated files
.if \n(81<\n(38 .nr 81 \n(38
.81
.rm 81
.nr 38 \n(a-
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \n(b-
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \n(c-
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \n(d-
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \n(e-
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \n(f-
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \n(g-
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \n(h-
.if \n(81<\n(38 .nr 81 \n(38
T
tbell 已提交
334 335
.nr 38 \n(i-
.if \n(81<\n(38 .nr 81 \n(38
D
duke 已提交
336 337 338 339 340 341 342 343 344 345 346 347 348 349
.nr 38 \n(j-
.if \n(81<\n(38 .nr 81 \n(38
.nr 38 \n(k-
.if \n(81<\n(38 .nr 81 \n(38
.35
.nf
.ll \n(34u
.nr 38 1n
.nr 79 0
.nr 40 \n(79+(0*\n(38)
.nr 80 +\n(40
.nr 41 \n(80+(3*\n(38)
.nr 81 +\n(41
.nr TW \n(81
350
.if t .if \n(TW>\n(.li .tm Table at line 133 file Input is too wide - \n(TW units
D
duke 已提交
351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372
.fc  
.nr #T 0-1
.nr #a 0-1
.eo
.de T#
.ds #d .d
.if \(ts\n(.z\(ts\(ts .ds #d nl
.mk ##
.nr ## -1v
.ls 1
.ls
..
.ec
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
\&\h'|\n(40u'\f3Option\fP\h'|\n(41u'\f3Description\fP
.ne \n(a|u+\n(.Vu
.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
T
tbell 已提交
373
\&\h'|\n(40u'\f4\-classpath <path>\fP\h'|\n(41u'
D
duke 已提交
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388
.mk ##
.nr 31 \n(##
.sp |\n(##u-1v
.nr 37 \n(41u
.in +\n(37u
.a+
.in -\n(37u
.mk 32
.if \n(32>\n(31 .nr 31 \n(32
.sp |\n(31u
.ne \n(b|u+\n(.Vu
.if (\n(b|+\n(#^-1v)>\n(#- .nr #- +(\n(b|+\n(#^-\n(#--1v)
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
T
tbell 已提交
389
\&\h'|\n(40u'\f4\-cp <path>\fP\h'|\n(41u'
D
duke 已提交
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404
.mk ##
.nr 31 \n(##
.sp |\n(##u-1v
.nr 37 \n(41u
.in +\n(37u
.b+
.in -\n(37u
.mk 32
.if \n(32>\n(31 .nr 31 \n(32
.sp |\n(31u
.ne \n(c|u+\n(.Vu
.if (\n(c|+\n(#^-1v)>\n(#- .nr #- +(\n(c|+\n(#^-\n(#--1v)
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
T
tbell 已提交
405
\&\h'|\n(40u'\f4\-d <directory>\fP\h'|\n(41u'
D
duke 已提交
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420
.mk ##
.nr 31 \n(##
.sp |\n(##u-1v
.nr 37 \n(41u
.in +\n(37u
.c+
.in -\n(37u
.mk 32
.if \n(32>\n(31 .nr 31 \n(32
.sp |\n(31u
.ne \n(d|u+\n(.Vu
.if (\n(d|+\n(#^-1v)>\n(#- .nr #- +(\n(d|+\n(#^-\n(#--1v)
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
T
tbell 已提交
421
\&\h'|\n(40u'\f4\-extension\fP\h'|\n(41u'
D
duke 已提交
422 423 424 425 426 427 428 429 430 431 432 433 434
.mk ##
.nr 31 \n(##
.sp |\n(##u-1v
.nr 37 \n(41u
.in +\n(37u
.d+
.in -\n(37u
.mk 32
.if \n(32>\n(31 .nr 31 \n(32
.sp |\n(31u
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
T
tbell 已提交
435
\&\h'|\n(40u'\f4\-help\fP\h'|\n(41u'Display help
D
duke 已提交
436 437 438
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
T
tbell 已提交
439
\&\h'|\n(40u'\f4\-keep\fP\h'|\n(41u'Keep generated files
D
duke 已提交
440 441 442 443 444
.ne \n(e|u+\n(.Vu
.if (\n(e|+\n(#^-1v)>\n(#- .nr #- +(\n(e|+\n(#^-\n(#--1v)
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
T
tbell 已提交
445
\&\h'|\n(40u'\f4\-r <directory>\fP\h'|\n(41u'
D
duke 已提交
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460
.mk ##
.nr 31 \n(##
.sp |\n(##u-1v
.nr 37 \n(41u
.in +\n(37u
.e+
.in -\n(37u
.mk 32
.if \n(32>\n(31 .nr 31 \n(32
.sp |\n(31u
.ne \n(f|u+\n(.Vu
.if (\n(f|+\n(#^-1v)>\n(#- .nr #- +(\n(f|+\n(#^-\n(#--1v)
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
T
tbell 已提交
461
\&\h'|\n(40u'\f4\-s <directory>\fP\h'|\n(41u'
D
duke 已提交
462 463 464 465 466 467 468 469 470 471 472 473 474 475 476
.mk ##
.nr 31 \n(##
.sp |\n(##u-1v
.nr 37 \n(41u
.in +\n(37u
.f+
.in -\n(37u
.mk 32
.if \n(32>\n(31 .nr 31 \n(32
.sp |\n(31u
.ne \n(g|u+\n(.Vu
.if (\n(g|+\n(#^-1v)>\n(#- .nr #- +(\n(g|+\n(#^-\n(#--1v)
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
T
tbell 已提交
477
\&\h'|\n(40u'\f4\-verbose\fP\h'|\n(41u'
D
duke 已提交
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492
.mk ##
.nr 31 \n(##
.sp |\n(##u-1v
.nr 37 \n(41u
.in +\n(37u
.g+
.in -\n(37u
.mk 32
.if \n(32>\n(31 .nr 31 \n(32
.sp |\n(31u
.ne \n(h|u+\n(.Vu
.if (\n(h|+\n(#^-1v)>\n(#- .nr #- +(\n(h|+\n(#^-\n(#--1v)
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
T
tbell 已提交
493
\&\h'|\n(40u'\f4\-version\fP\h'|\n(41u'
D
duke 已提交
494 495 496 497 498 499 500 501 502 503 504 505 506 507 508
.mk ##
.nr 31 \n(##
.sp |\n(##u-1v
.nr 37 \n(41u
.in +\n(37u
.h+
.in -\n(37u
.mk 32
.if \n(32>\n(31 .nr 31 \n(32
.sp |\n(31u
.ne \n(i|u+\n(.Vu
.if (\n(i|+\n(#^-1v)>\n(#- .nr #- +(\n(i|+\n(#^-\n(#--1v)
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
T
tbell 已提交
509
\&\h'|\n(40u'\f4\-wsdl[:protocol]\fP\h'|\n(41u'
D
duke 已提交
510 511 512 513 514
.mk ##
.nr 31 \n(##
.sp |\n(##u-1v
.nr 37 \n(41u
.in +\n(37u
T
tbell 已提交
515
.i+
D
duke 已提交
516 517 518 519
.in -\n(37u
.mk 32
.if \n(32>\n(31 .nr 31 \n(32
.sp |\n(31u
T
tbell 已提交
520 521
.ne \n(j|u+\n(.Vu
.if (\n(j|+\n(#^-1v)>\n(#- .nr #- +(\n(j|+\n(#^-\n(#--1v)
D
duke 已提交
522 523 524
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
T
tbell 已提交
525
\&\h'|\n(40u'\f4\-servicename <name>\fP\h'|\n(41u'
D
duke 已提交
526 527 528 529 530
.mk ##
.nr 31 \n(##
.sp |\n(##u-1v
.nr 37 \n(41u
.in +\n(37u
T
tbell 已提交
531
.j+
D
duke 已提交
532 533 534 535
.in -\n(37u
.mk 32
.if \n(32>\n(31 .nr 31 \n(32
.sp |\n(31u
T
tbell 已提交
536 537
.ne \n(k|u+\n(.Vu
.if (\n(k|+\n(#^-1v)>\n(#- .nr #- +(\n(k|+\n(#^-\n(#--1v)
D
duke 已提交
538 539 540
.ta \n(80u \n(81u 
.nr 31 \n(.f
.nr 35 1m
T
tbell 已提交
541
\&\h'|\n(40u'\f4\-portname <name>\fP\h'|\n(41u'
D
duke 已提交
542 543 544 545 546
.mk ##
.nr 31 \n(##
.sp |\n(##u-1v
.nr 37 \n(41u
.in +\n(37u
T
tbell 已提交
547
.k+
D
duke 已提交
548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
.in -\n(37u
.mk 32
.if \n(32>\n(31 .nr 31 \n(32
.sp |\n(31u
.fc
.nr T. 1
.T# 1
.35
.rm a+
.rm b+
.rm c+
.rm d+
.rm e+
.rm f+
.rm g+
.rm h+
.rm i+
.rm j+
.rm k+
T
tbell 已提交
567
.if \n-(b.=0 .nr c. \n(.c-\n(d.-53
D
duke 已提交
568 569

.LP
T
tbell 已提交
570
.SH "Example"
D
duke 已提交
571 572 573
.nf
\f3
.fl
T
tbell 已提交
574
\fP\f3wsgen \-d stock \-cp myclasspath stock.StockService\fP 
D
duke 已提交
575
.fl
T
tbell 已提交
576 577 578 579 580
.fi
.LP
This will generate the wrapper classes needed for StockService annotated with @WebService annotation inside \f3stock\fPdirectory.
.nf
\f3
D
duke 已提交
581
.fl
T
tbell 已提交
582
\fP\f3wsgen \-wsdl \-d stock \-cp myclasspath stock.StockService\fP 
D
duke 已提交
583
.fl
T
tbell 已提交
584 585 586 587 588
.fi
.LP
This will generate a SOAP 1.1 WSDL and schema for your Java class stock.StockService annotated with @WebService annotation.
.nf
\f3
D
duke 已提交
589
.fl
T
tbell 已提交
590
\fP\f3wsgen \-wsdl:Xsoap1.2 \-d stock \-cp myclasspath stock.StockService\fP 
D
duke 已提交
591 592 593
.fl
.fi
.LP
T
tbell 已提交
594
Will generate a SOAP 1.2 WSDL.
D
duke 已提交
595
.LP
T
tbell 已提交
596
Note that you do not have to generate WSDL at the development time as JAXWS runtime will automatically generate a WSDL for you when you deploy your service.