blob: ad54042d3f97cebb714161bf888afd646b37aa32 [file] [log] [blame]
tbell16c34dd2009-05-04 18:28:26 -07001." Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
duke6e45e102007-12-01 00:00:00 +00002." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3."
4." This code is free software; you can redistribute it and/or modify it
5." under the terms of the GNU General Public License version 2 only, as
6." published by the Free Software Foundation.
7."
8." This code is distributed in the hope that it will be useful, but WITHOUT
9." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11." version 2 for more details (a copy is included in the LICENSE file that
12." accompanied this code).
13."
14." You should have received a copy of the GNU General Public License version
15." 2 along with this work; if not, write to the Free Software Foundation,
16." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17."
18." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
19." CA 95054 USA or visit www.sun.com if you need additional information or
20." have any questions.
21."
tbell16c34dd2009-05-04 18:28:26 -070022.TH wsgen 1 "04 May 2009"
23." Generated from HTML by html2man (author: Eric Armstrong)
24.SH "Name"
25wsgen \- Java(TM) API for XML Web Services (JAX\-WS) 2.0
duke6e45e102007-12-01 00:00:00 +000026.RS 3
27
28.LP
29.LP
tbell16c34dd2009-05-04 18:28:26 -070030\f3Specification Version:\fP 2.1
31.br
32\f3Implementation Version:\fP 2.1.1
33.LP
34.LP
35The \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
duke6e45e102007-12-01 00:00:00 +000036.LP
37.RE
tbell16c34dd2009-05-04 18:28:26 -070038.SH "Overview"
duke6e45e102007-12-01 00:00:00 +000039.LP
tbell16c34dd2009-05-04 18:28:26 -070040The \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
41.na
42\f2Wsgen ant task\fP @
43.fi
44https://jax\-ws.dev.java.net/nonav/2.1.1/docs/wsgenant.html for details.
45.LP
46.SH "Launching wsgen"
47.RS 3
48.TP 2
49o
50\f3Solaris/Linux\fP
51.RS 3
52.TP 2
53*
54\f2export JAXWS_HOME=/pathto/jaxws\-ri\fP
55.TP 2
56*
57\f2$JAXWS_HOME/bin/wsgen.sh \-help\fP
58.RE
59.TP 2
60o
61\f3Windows\fP
62.RS 3
63.TP 2
64*
65\f2set JAXWS_HOME=c:\\pathto\\jaxws\-ri\fP
66.TP 2
67*
68\f2%JAXWS_HOME%\\bin\\wsgen.bat \-help\fP
69.RE
70.RE
duke6e45e102007-12-01 00:00:00 +000071
72.LP
tbell16c34dd2009-05-04 18:28:26 -070073.SH "Syntax"
duke6e45e102007-12-01 00:00:00 +000074.nf
75\f3
76.fl
tbell16c34dd2009-05-04 18:28:26 -070077wsgen [options] <SEI>\fP
78.br
79\f3
duke6e45e102007-12-01 00:00:00 +000080.fl
81\fP
82.fi
duke6e45e102007-12-01 00:00:00 +000083.LP
84The following table lists the \f2wsgen\fP options.
85.br
duke6e45e102007-12-01 00:00:00 +000086.LP
87.TS
88.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
89.de 35
90.ps \n(.s
91.vs \n(.vu
92.in \n(.iu
93.if \n(.u .fi
94.if \n(.j .ad
95.if \n(.j=0 .na
96..
97.nf
98.nr #~ 0
99.if n .nr #~ 0.6n
100.ds #d .d
101.if \(ts\n(.z\(ts\(ts .ds #d nl
102.fc
103.nr 33 \n(.s
104.rm 80 81
105.nr 34 \n(.lu
106.eo
107.am 81
108.br
109.di a+
110.35
111.ft \n(.f
112.ll \n(34u*1u/3u
113.if \n(.l<\n(81 .ll \n(81u
114.in 0
115Specify where to find input class files
116.br
117.di
118.nr a| \n(dn
119.nr a- \n(dl
120..
121.ec \
122.eo
123.am 81
124.br
125.di b+
126.35
127.ft \n(.f
128.ll \n(34u*1u/3u
129.if \n(.l<\n(81 .ll \n(81u
130.in 0
131Same as \f2\-classpath <path>\fP
132.br
133.di
134.nr b| \n(dn
135.nr b- \n(dl
136..
137.ec \
138.eo
139.am 81
140.br
141.di c+
142.35
143.ft \n(.f
144.ll \n(34u*1u/3u
145.if \n(.l<\n(81 .ll \n(81u
146.in 0
147Specify where to place generated output files
148.br
149.di
150.nr c| \n(dn
151.nr c- \n(dl
152..
153.ec \
154.eo
155.am 81
156.br
157.di d+
158.35
159.ft \n(.f
160.ll \n(34u*1u/3u
161.if \n(.l<\n(81 .ll \n(81u
162.in 0
163allow 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
164.br
165.di
166.nr d| \n(dn
167.nr d- \n(dl
168..
169.ec \
170.eo
171.am 81
172.br
173.di e+
174.35
175.ft \n(.f
176.ll \n(34u*1u/3u
177.if \n(.l<\n(81 .ll \n(81u
178.in 0
179Used only in conjunction with the \-wsdl option. Specify where to place generated resource files such as WSDLs
180.br
181.di
182.nr e| \n(dn
183.nr e- \n(dl
184..
185.ec \
186.eo
187.am 81
188.br
189.di f+
190.35
191.ft \n(.f
192.ll \n(34u*1u/3u
193.if \n(.l<\n(81 .ll \n(81u
194.in 0
195Specify where to place generated source files
196.br
197.di
198.nr f| \n(dn
199.nr f- \n(dl
200..
201.ec \
202.eo
203.am 81
204.br
205.di g+
206.35
207.ft \n(.f
208.ll \n(34u*1u/3u
209.if \n(.l<\n(81 .ll \n(81u
210.in 0
211Output messages about what the compiler is doing
212.br
213.di
214.nr g| \n(dn
215.nr g- \n(dl
216..
217.ec \
218.eo
219.am 81
220.br
221.di h+
222.35
223.ft \n(.f
224.ll \n(34u*1u/3u
225.if \n(.l<\n(81 .ll \n(81u
226.in 0
227Print version information. Use of this option will ONLY print version information. Normal processing will not occur.
228.br
229.di
230.nr h| \n(dn
231.nr h- \n(dl
232..
233.ec \
234.eo
tbell16c34dd2009-05-04 18:28:26 -0700235.am 81
duke6e45e102007-12-01 00:00:00 +0000236.br
237.di i+
238.35
239.ft \n(.f
240.ll \n(34u*1u/3u
tbell16c34dd2009-05-04 18:28:26 -0700241.if \n(.l<\n(81 .ll \n(81u
duke6e45e102007-12-01 00:00:00 +0000242.in 0
tbell16c34dd2009-05-04 18:28:26 -0700243By 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.
duke6e45e102007-12-01 00:00:00 +0000244.br
245.di
246.nr i| \n(dn
247.nr i- \n(dl
248..
249.ec \
250.eo
251.am 81
252.br
253.di j+
254.35
255.ft \n(.f
256.ll \n(34u*1u/3u
257.if \n(.l<\n(81 .ll \n(81u
258.in 0
tbell16c34dd2009-05-04 18:28:26 -0700259Used 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
duke6e45e102007-12-01 00:00:00 +0000260.br
261.di
262.nr j| \n(dn
263.nr j- \n(dl
264..
265.ec \
266.eo
267.am 81
268.br
269.di k+
270.35
271.ft \n(.f
272.ll \n(34u*1u/3u
273.if \n(.l<\n(81 .ll \n(81u
274.in 0
duke6e45e102007-12-01 00:00:00 +0000275Used 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
276.br
277.br
278.di
tbell16c34dd2009-05-04 18:28:26 -0700279.nr k| \n(dn
280.nr k- \n(dl
duke6e45e102007-12-01 00:00:00 +0000281..
282.ec \
283.35
284.nf
285.ll \n(34u
286.nr 80 0
287.nr 38 \w\f3Option\fP
288.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700289.nr 38 \w\f4\-classpath <path>\fP
duke6e45e102007-12-01 00:00:00 +0000290.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700291.nr 38 \w\f4\-cp <path>\fP
duke6e45e102007-12-01 00:00:00 +0000292.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700293.nr 38 \w\f4\-d <directory>\fP
duke6e45e102007-12-01 00:00:00 +0000294.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700295.nr 38 \w\f4\-extension\fP
duke6e45e102007-12-01 00:00:00 +0000296.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700297.nr 38 \w\f4\-help\fP
duke6e45e102007-12-01 00:00:00 +0000298.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700299.nr 38 \w\f4\-keep\fP
duke6e45e102007-12-01 00:00:00 +0000300.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700301.nr 38 \w\f4\-r <directory>\fP
duke6e45e102007-12-01 00:00:00 +0000302.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700303.nr 38 \w\f4\-s <directory>\fP
duke6e45e102007-12-01 00:00:00 +0000304.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700305.nr 38 \w\f4\-verbose\fP
duke6e45e102007-12-01 00:00:00 +0000306.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700307.nr 38 \w\f4\-version\fP
duke6e45e102007-12-01 00:00:00 +0000308.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700309.nr 38 \w\f4\-wsdl[:protocol]\fP
duke6e45e102007-12-01 00:00:00 +0000310.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700311.nr 38 \w\f4\-servicename <name>\fP
312.if \n(80<\n(38 .nr 80 \n(38
313.nr 38 \w\f4\-portname <name>\fP
duke6e45e102007-12-01 00:00:00 +0000314.if \n(80<\n(38 .nr 80 \n(38
315.80
316.rm 80
duke6e45e102007-12-01 00:00:00 +0000317.nr 81 0
318.nr 38 \w\f3Description\fP
319.if \n(81<\n(38 .nr 81 \n(38
320.nr 38 \wDisplay help
321.if \n(81<\n(38 .nr 81 \n(38
322.nr 38 \wKeep generated files
323.if \n(81<\n(38 .nr 81 \n(38
324.81
325.rm 81
326.nr 38 \n(a-
327.if \n(81<\n(38 .nr 81 \n(38
328.nr 38 \n(b-
329.if \n(81<\n(38 .nr 81 \n(38
330.nr 38 \n(c-
331.if \n(81<\n(38 .nr 81 \n(38
332.nr 38 \n(d-
333.if \n(81<\n(38 .nr 81 \n(38
334.nr 38 \n(e-
335.if \n(81<\n(38 .nr 81 \n(38
336.nr 38 \n(f-
337.if \n(81<\n(38 .nr 81 \n(38
338.nr 38 \n(g-
339.if \n(81<\n(38 .nr 81 \n(38
340.nr 38 \n(h-
341.if \n(81<\n(38 .nr 81 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700342.nr 38 \n(i-
343.if \n(81<\n(38 .nr 81 \n(38
duke6e45e102007-12-01 00:00:00 +0000344.nr 38 \n(j-
345.if \n(81<\n(38 .nr 81 \n(38
346.nr 38 \n(k-
347.if \n(81<\n(38 .nr 81 \n(38
duke6e45e102007-12-01 00:00:00 +0000348.35
349.nf
350.ll \n(34u
351.nr 38 1n
352.nr 79 0
353.nr 40 \n(79+(0*\n(38)
354.nr 80 +\n(40
355.nr 41 \n(80+(3*\n(38)
356.nr 81 +\n(41
357.nr TW \n(81
tbell16c34dd2009-05-04 18:28:26 -0700358.if t .if \n(TW>\n(.li .tm Table at line 140 file Input is too wide - \n(TW units
duke6e45e102007-12-01 00:00:00 +0000359.fc  
360.nr #T 0-1
361.nr #a 0-1
362.eo
363.de T#
364.ds #d .d
365.if \(ts\n(.z\(ts\(ts .ds #d nl
366.mk ##
367.nr ## -1v
368.ls 1
369.ls
370..
371.ec
372.ta \n(80u \n(81u
373.nr 31 \n(.f
374.nr 35 1m
375\&\h'|\n(40u'\f3Option\fP\h'|\n(41u'\f3Description\fP
376.ne \n(a|u+\n(.Vu
377.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
378.ta \n(80u \n(81u
379.nr 31 \n(.f
380.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700381\&\h'|\n(40u'\f4\-classpath <path>\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000382.mk ##
383.nr 31 \n(##
384.sp |\n(##u-1v
385.nr 37 \n(41u
386.in +\n(37u
387.a+
388.in -\n(37u
389.mk 32
390.if \n(32>\n(31 .nr 31 \n(32
391.sp |\n(31u
392.ne \n(b|u+\n(.Vu
393.if (\n(b|+\n(#^-1v)>\n(#- .nr #- +(\n(b|+\n(#^-\n(#--1v)
394.ta \n(80u \n(81u
395.nr 31 \n(.f
396.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700397\&\h'|\n(40u'\f4\-cp <path>\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000398.mk ##
399.nr 31 \n(##
400.sp |\n(##u-1v
401.nr 37 \n(41u
402.in +\n(37u
403.b+
404.in -\n(37u
405.mk 32
406.if \n(32>\n(31 .nr 31 \n(32
407.sp |\n(31u
408.ne \n(c|u+\n(.Vu
409.if (\n(c|+\n(#^-1v)>\n(#- .nr #- +(\n(c|+\n(#^-\n(#--1v)
410.ta \n(80u \n(81u
411.nr 31 \n(.f
412.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700413\&\h'|\n(40u'\f4\-d <directory>\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000414.mk ##
415.nr 31 \n(##
416.sp |\n(##u-1v
417.nr 37 \n(41u
418.in +\n(37u
419.c+
420.in -\n(37u
421.mk 32
422.if \n(32>\n(31 .nr 31 \n(32
423.sp |\n(31u
424.ne \n(d|u+\n(.Vu
425.if (\n(d|+\n(#^-1v)>\n(#- .nr #- +(\n(d|+\n(#^-\n(#--1v)
426.ta \n(80u \n(81u
427.nr 31 \n(.f
428.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700429\&\h'|\n(40u'\f4\-extension\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000430.mk ##
431.nr 31 \n(##
432.sp |\n(##u-1v
433.nr 37 \n(41u
434.in +\n(37u
435.d+
436.in -\n(37u
437.mk 32
438.if \n(32>\n(31 .nr 31 \n(32
439.sp |\n(31u
440.ta \n(80u \n(81u
441.nr 31 \n(.f
442.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700443\&\h'|\n(40u'\f4\-help\fP\h'|\n(41u'Display help
duke6e45e102007-12-01 00:00:00 +0000444.ta \n(80u \n(81u
445.nr 31 \n(.f
446.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700447\&\h'|\n(40u'\f4\-keep\fP\h'|\n(41u'Keep generated files
duke6e45e102007-12-01 00:00:00 +0000448.ne \n(e|u+\n(.Vu
449.if (\n(e|+\n(#^-1v)>\n(#- .nr #- +(\n(e|+\n(#^-\n(#--1v)
450.ta \n(80u \n(81u
451.nr 31 \n(.f
452.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700453\&\h'|\n(40u'\f4\-r <directory>\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000454.mk ##
455.nr 31 \n(##
456.sp |\n(##u-1v
457.nr 37 \n(41u
458.in +\n(37u
459.e+
460.in -\n(37u
461.mk 32
462.if \n(32>\n(31 .nr 31 \n(32
463.sp |\n(31u
464.ne \n(f|u+\n(.Vu
465.if (\n(f|+\n(#^-1v)>\n(#- .nr #- +(\n(f|+\n(#^-\n(#--1v)
466.ta \n(80u \n(81u
467.nr 31 \n(.f
468.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700469\&\h'|\n(40u'\f4\-s <directory>\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000470.mk ##
471.nr 31 \n(##
472.sp |\n(##u-1v
473.nr 37 \n(41u
474.in +\n(37u
475.f+
476.in -\n(37u
477.mk 32
478.if \n(32>\n(31 .nr 31 \n(32
479.sp |\n(31u
480.ne \n(g|u+\n(.Vu
481.if (\n(g|+\n(#^-1v)>\n(#- .nr #- +(\n(g|+\n(#^-\n(#--1v)
482.ta \n(80u \n(81u
483.nr 31 \n(.f
484.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700485\&\h'|\n(40u'\f4\-verbose\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000486.mk ##
487.nr 31 \n(##
488.sp |\n(##u-1v
489.nr 37 \n(41u
490.in +\n(37u
491.g+
492.in -\n(37u
493.mk 32
494.if \n(32>\n(31 .nr 31 \n(32
495.sp |\n(31u
496.ne \n(h|u+\n(.Vu
497.if (\n(h|+\n(#^-1v)>\n(#- .nr #- +(\n(h|+\n(#^-\n(#--1v)
498.ta \n(80u \n(81u
499.nr 31 \n(.f
500.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700501\&\h'|\n(40u'\f4\-version\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000502.mk ##
503.nr 31 \n(##
504.sp |\n(##u-1v
505.nr 37 \n(41u
506.in +\n(37u
507.h+
508.in -\n(37u
509.mk 32
510.if \n(32>\n(31 .nr 31 \n(32
511.sp |\n(31u
512.ne \n(i|u+\n(.Vu
duke6e45e102007-12-01 00:00:00 +0000513.if (\n(i|+\n(#^-1v)>\n(#- .nr #- +(\n(i|+\n(#^-\n(#--1v)
duke6e45e102007-12-01 00:00:00 +0000514.ta \n(80u \n(81u
515.nr 31 \n(.f
516.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700517\&\h'|\n(40u'\f4\-wsdl[:protocol]\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000518.mk ##
519.nr 31 \n(##
520.sp |\n(##u-1v
tbell16c34dd2009-05-04 18:28:26 -0700521.nr 37 \n(41u
duke6e45e102007-12-01 00:00:00 +0000522.in +\n(37u
523.i+
524.in -\n(37u
525.mk 32
526.if \n(32>\n(31 .nr 31 \n(32
tbell16c34dd2009-05-04 18:28:26 -0700527.sp |\n(31u
528.ne \n(j|u+\n(.Vu
529.if (\n(j|+\n(#^-1v)>\n(#- .nr #- +(\n(j|+\n(#^-\n(#--1v)
530.ta \n(80u \n(81u
531.nr 31 \n(.f
532.nr 35 1m
533\&\h'|\n(40u'\f4\-servicename <name>\fP\h'|\n(41u'
534.mk ##
535.nr 31 \n(##
duke6e45e102007-12-01 00:00:00 +0000536.sp |\n(##u-1v
537.nr 37 \n(41u
538.in +\n(37u
539.j+
540.in -\n(37u
541.mk 32
542.if \n(32>\n(31 .nr 31 \n(32
543.sp |\n(31u
544.ne \n(k|u+\n(.Vu
545.if (\n(k|+\n(#^-1v)>\n(#- .nr #- +(\n(k|+\n(#^-\n(#--1v)
546.ta \n(80u \n(81u
547.nr 31 \n(.f
548.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700549\&\h'|\n(40u'\f4\-portname <name>\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000550.mk ##
551.nr 31 \n(##
552.sp |\n(##u-1v
553.nr 37 \n(41u
554.in +\n(37u
555.k+
556.in -\n(37u
557.mk 32
558.if \n(32>\n(31 .nr 31 \n(32
559.sp |\n(31u
duke6e45e102007-12-01 00:00:00 +0000560.fc
561.nr T. 1
562.T# 1
563.35
564.rm a+
565.rm b+
566.rm c+
567.rm d+
568.rm e+
569.rm f+
570.rm g+
571.rm h+
572.rm i+
573.rm j+
574.rm k+
duke6e45e102007-12-01 00:00:00 +0000575.TE
tbell16c34dd2009-05-04 18:28:26 -0700576.if \n-(b.=0 .nr c. \n(.c-\n(d.-53
duke6e45e102007-12-01 00:00:00 +0000577
578.LP
duke6e45e102007-12-01 00:00:00 +0000579.SH "Example"
duke6e45e102007-12-01 00:00:00 +0000580.nf
581\f3
582.fl
tbell16c34dd2009-05-04 18:28:26 -0700583\fP\f3wsgen \-d stock \-cp myclasspath stock.StockService\fP
duke6e45e102007-12-01 00:00:00 +0000584.fl
duke6e45e102007-12-01 00:00:00 +0000585.fi
duke6e45e102007-12-01 00:00:00 +0000586.LP
tbell16c34dd2009-05-04 18:28:26 -0700587This will generate the wrapper classes needed for StockService annotated with @WebService annotation inside \f3stock\fPdirectory.
588.nf
589\f3
590.fl
591\fP\f3wsgen \-wsdl \-d stock \-cp myclasspath stock.StockService\fP
592.fl
593.fi
duke6e45e102007-12-01 00:00:00 +0000594.LP
tbell16c34dd2009-05-04 18:28:26 -0700595This will generate a SOAP 1.1 WSDL and schema for your Java class stock.StockService annotated with @WebService annotation.
596.nf
597\f3
598.fl
599\fP\f3wsgen \-wsdl:Xsoap1.2 \-d stock \-cp myclasspath stock.StockService\fP
600.fl
601.fi
602.LP
603Will generate a SOAP 1.2 WSDL.
604.LP
605Note 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.