blob: e210f1c2364a2c1f216271c4b0659ab16da8fda5 [file] [log] [blame]
bpatel87d64cc2010-07-14 15:42:06 -07001." Copyright (c) 2005, 2010, Oracle and/or its affiliates. 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."
ohair2283b9d2010-05-25 15:58:33 -070018." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19." or visit www.oracle.com if you need additional information or have any
20." questions.
duke6e45e102007-12-01 00:00:00 +000021."
bpatel87d64cc2010-07-14 15:42:06 -070022.TH wsgen 1 "02 Jun 2010"
tbell16c34dd2009-05-04 18:28:26 -070023.SH "Name"
24wsgen \- Java(TM) API for XML Web Services (JAX\-WS) 2.0
duke6e45e102007-12-01 00:00:00 +000025.RS 3
26
27.LP
28.LP
tbell16c34dd2009-05-04 18:28:26 -070029\f3Specification Version:\fP 2.1
30.br
31\f3Implementation Version:\fP 2.1.1
32.LP
33.LP
34The \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 +000035.LP
36.RE
tbell16c34dd2009-05-04 18:28:26 -070037.SH "Overview"
duke6e45e102007-12-01 00:00:00 +000038.LP
tbell16c34dd2009-05-04 18:28:26 -070039The \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
40.na
41\f2Wsgen ant task\fP @
42.fi
43https://jax\-ws.dev.java.net/nonav/2.1.1/docs/wsgenant.html for details.
44.LP
45.SH "Launching wsgen"
46.RS 3
47.TP 2
48o
49\f3Solaris/Linux\fP
50.RS 3
51.TP 2
52*
53\f2export JAXWS_HOME=/pathto/jaxws\-ri\fP
54.TP 2
55*
56\f2$JAXWS_HOME/bin/wsgen.sh \-help\fP
57.RE
58.TP 2
59o
60\f3Windows\fP
61.RS 3
62.TP 2
63*
64\f2set JAXWS_HOME=c:\\pathto\\jaxws\-ri\fP
65.TP 2
66*
67\f2%JAXWS_HOME%\\bin\\wsgen.bat \-help\fP
68.RE
69.RE
duke6e45e102007-12-01 00:00:00 +000070
71.LP
tbell16c34dd2009-05-04 18:28:26 -070072.SH "Syntax"
duke6e45e102007-12-01 00:00:00 +000073.nf
74\f3
75.fl
tbell16c34dd2009-05-04 18:28:26 -070076wsgen [options] <SEI>\fP
77.br
78\f3
duke6e45e102007-12-01 00:00:00 +000079.fl
80\fP
81.fi
duke6e45e102007-12-01 00:00:00 +000082.LP
83The following table lists the \f2wsgen\fP options.
84.br
duke6e45e102007-12-01 00:00:00 +000085.LP
86.TS
87.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
88.de 35
89.ps \n(.s
90.vs \n(.vu
91.in \n(.iu
92.if \n(.u .fi
93.if \n(.j .ad
94.if \n(.j=0 .na
95..
96.nf
97.nr #~ 0
98.if n .nr #~ 0.6n
99.ds #d .d
100.if \(ts\n(.z\(ts\(ts .ds #d nl
101.fc
102.nr 33 \n(.s
103.rm 80 81
104.nr 34 \n(.lu
105.eo
106.am 81
107.br
108.di a+
109.35
110.ft \n(.f
111.ll \n(34u*1u/3u
112.if \n(.l<\n(81 .ll \n(81u
113.in 0
114Specify where to find input class files
115.br
116.di
117.nr a| \n(dn
118.nr a- \n(dl
119..
120.ec \
121.eo
122.am 81
123.br
124.di b+
125.35
126.ft \n(.f
127.ll \n(34u*1u/3u
128.if \n(.l<\n(81 .ll \n(81u
129.in 0
130Same as \f2\-classpath <path>\fP
131.br
132.di
133.nr b| \n(dn
134.nr b- \n(dl
135..
136.ec \
137.eo
138.am 81
139.br
140.di c+
141.35
142.ft \n(.f
143.ll \n(34u*1u/3u
144.if \n(.l<\n(81 .ll \n(81u
145.in 0
146Specify where to place generated output files
147.br
148.di
149.nr c| \n(dn
150.nr c- \n(dl
151..
152.ec \
153.eo
154.am 81
155.br
156.di d+
157.35
158.ft \n(.f
159.ll \n(34u*1u/3u
160.if \n(.l<\n(81 .ll \n(81u
161.in 0
162allow 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
163.br
164.di
165.nr d| \n(dn
166.nr d- \n(dl
167..
168.ec \
169.eo
170.am 81
171.br
172.di e+
173.35
174.ft \n(.f
175.ll \n(34u*1u/3u
176.if \n(.l<\n(81 .ll \n(81u
177.in 0
178Used only in conjunction with the \-wsdl option. Specify where to place generated resource files such as WSDLs
179.br
180.di
181.nr e| \n(dn
182.nr e- \n(dl
183..
184.ec \
185.eo
186.am 81
187.br
188.di f+
189.35
190.ft \n(.f
191.ll \n(34u*1u/3u
192.if \n(.l<\n(81 .ll \n(81u
193.in 0
194Specify where to place generated source files
195.br
196.di
197.nr f| \n(dn
198.nr f- \n(dl
199..
200.ec \
201.eo
202.am 81
203.br
204.di g+
205.35
206.ft \n(.f
207.ll \n(34u*1u/3u
208.if \n(.l<\n(81 .ll \n(81u
209.in 0
210Output messages about what the compiler is doing
211.br
212.di
213.nr g| \n(dn
214.nr g- \n(dl
215..
216.ec \
217.eo
218.am 81
219.br
220.di h+
221.35
222.ft \n(.f
223.ll \n(34u*1u/3u
224.if \n(.l<\n(81 .ll \n(81u
225.in 0
226Print version information. Use of this option will ONLY print version information. Normal processing will not occur.
227.br
228.di
229.nr h| \n(dn
230.nr h- \n(dl
231..
232.ec \
233.eo
tbell16c34dd2009-05-04 18:28:26 -0700234.am 81
duke6e45e102007-12-01 00:00:00 +0000235.br
236.di i+
237.35
238.ft \n(.f
239.ll \n(34u*1u/3u
tbell16c34dd2009-05-04 18:28:26 -0700240.if \n(.l<\n(81 .ll \n(81u
duke6e45e102007-12-01 00:00:00 +0000241.in 0
tbell16c34dd2009-05-04 18:28:26 -0700242By 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 +0000243.br
244.di
245.nr i| \n(dn
246.nr i- \n(dl
247..
248.ec \
249.eo
250.am 81
251.br
252.di j+
253.35
254.ft \n(.f
255.ll \n(34u*1u/3u
256.if \n(.l<\n(81 .ll \n(81u
257.in 0
tbell16c34dd2009-05-04 18:28:26 -0700258Used 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 +0000259.br
260.di
261.nr j| \n(dn
262.nr j- \n(dl
263..
264.ec \
265.eo
266.am 81
267.br
268.di k+
269.35
270.ft \n(.f
271.ll \n(34u*1u/3u
272.if \n(.l<\n(81 .ll \n(81u
273.in 0
duke6e45e102007-12-01 00:00:00 +0000274Used 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
275.br
276.br
277.di
tbell16c34dd2009-05-04 18:28:26 -0700278.nr k| \n(dn
279.nr k- \n(dl
duke6e45e102007-12-01 00:00:00 +0000280..
281.ec \
282.35
283.nf
284.ll \n(34u
285.nr 80 0
286.nr 38 \w\f3Option\fP
287.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700288.nr 38 \w\f4\-classpath <path>\fP
duke6e45e102007-12-01 00:00:00 +0000289.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700290.nr 38 \w\f4\-cp <path>\fP
duke6e45e102007-12-01 00:00:00 +0000291.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700292.nr 38 \w\f4\-d <directory>\fP
duke6e45e102007-12-01 00:00:00 +0000293.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700294.nr 38 \w\f4\-extension\fP
duke6e45e102007-12-01 00:00:00 +0000295.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700296.nr 38 \w\f4\-help\fP
duke6e45e102007-12-01 00:00:00 +0000297.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700298.nr 38 \w\f4\-keep\fP
duke6e45e102007-12-01 00:00:00 +0000299.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700300.nr 38 \w\f4\-r <directory>\fP
duke6e45e102007-12-01 00:00:00 +0000301.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700302.nr 38 \w\f4\-s <directory>\fP
duke6e45e102007-12-01 00:00:00 +0000303.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700304.nr 38 \w\f4\-verbose\fP
duke6e45e102007-12-01 00:00:00 +0000305.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700306.nr 38 \w\f4\-version\fP
duke6e45e102007-12-01 00:00:00 +0000307.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700308.nr 38 \w\f4\-wsdl[:protocol]\fP
duke6e45e102007-12-01 00:00:00 +0000309.if \n(80<\n(38 .nr 80 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700310.nr 38 \w\f4\-servicename <name>\fP
311.if \n(80<\n(38 .nr 80 \n(38
312.nr 38 \w\f4\-portname <name>\fP
duke6e45e102007-12-01 00:00:00 +0000313.if \n(80<\n(38 .nr 80 \n(38
314.80
315.rm 80
duke6e45e102007-12-01 00:00:00 +0000316.nr 81 0
317.nr 38 \w\f3Description\fP
318.if \n(81<\n(38 .nr 81 \n(38
319.nr 38 \wDisplay help
320.if \n(81<\n(38 .nr 81 \n(38
321.nr 38 \wKeep generated files
322.if \n(81<\n(38 .nr 81 \n(38
323.81
324.rm 81
325.nr 38 \n(a-
326.if \n(81<\n(38 .nr 81 \n(38
327.nr 38 \n(b-
328.if \n(81<\n(38 .nr 81 \n(38
329.nr 38 \n(c-
330.if \n(81<\n(38 .nr 81 \n(38
331.nr 38 \n(d-
332.if \n(81<\n(38 .nr 81 \n(38
333.nr 38 \n(e-
334.if \n(81<\n(38 .nr 81 \n(38
335.nr 38 \n(f-
336.if \n(81<\n(38 .nr 81 \n(38
337.nr 38 \n(g-
338.if \n(81<\n(38 .nr 81 \n(38
339.nr 38 \n(h-
340.if \n(81<\n(38 .nr 81 \n(38
tbell16c34dd2009-05-04 18:28:26 -0700341.nr 38 \n(i-
342.if \n(81<\n(38 .nr 81 \n(38
duke6e45e102007-12-01 00:00:00 +0000343.nr 38 \n(j-
344.if \n(81<\n(38 .nr 81 \n(38
345.nr 38 \n(k-
346.if \n(81<\n(38 .nr 81 \n(38
duke6e45e102007-12-01 00:00:00 +0000347.35
348.nf
349.ll \n(34u
350.nr 38 1n
351.nr 79 0
352.nr 40 \n(79+(0*\n(38)
353.nr 80 +\n(40
354.nr 41 \n(80+(3*\n(38)
355.nr 81 +\n(41
356.nr TW \n(81
bpatel87d64cc2010-07-14 15:42:06 -0700357.if t .if \n(TW>\n(.li .tm Table at line 139 file Input is too wide - \n(TW units
duke6e45e102007-12-01 00:00:00 +0000358.fc  
359.nr #T 0-1
360.nr #a 0-1
361.eo
362.de T#
363.ds #d .d
364.if \(ts\n(.z\(ts\(ts .ds #d nl
365.mk ##
366.nr ## -1v
367.ls 1
368.ls
369..
370.ec
371.ta \n(80u \n(81u
372.nr 31 \n(.f
373.nr 35 1m
374\&\h'|\n(40u'\f3Option\fP\h'|\n(41u'\f3Description\fP
375.ne \n(a|u+\n(.Vu
376.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
377.ta \n(80u \n(81u
378.nr 31 \n(.f
379.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700380\&\h'|\n(40u'\f4\-classpath <path>\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000381.mk ##
382.nr 31 \n(##
383.sp |\n(##u-1v
384.nr 37 \n(41u
385.in +\n(37u
386.a+
387.in -\n(37u
388.mk 32
389.if \n(32>\n(31 .nr 31 \n(32
390.sp |\n(31u
391.ne \n(b|u+\n(.Vu
392.if (\n(b|+\n(#^-1v)>\n(#- .nr #- +(\n(b|+\n(#^-\n(#--1v)
393.ta \n(80u \n(81u
394.nr 31 \n(.f
395.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700396\&\h'|\n(40u'\f4\-cp <path>\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000397.mk ##
398.nr 31 \n(##
399.sp |\n(##u-1v
400.nr 37 \n(41u
401.in +\n(37u
402.b+
403.in -\n(37u
404.mk 32
405.if \n(32>\n(31 .nr 31 \n(32
406.sp |\n(31u
407.ne \n(c|u+\n(.Vu
408.if (\n(c|+\n(#^-1v)>\n(#- .nr #- +(\n(c|+\n(#^-\n(#--1v)
409.ta \n(80u \n(81u
410.nr 31 \n(.f
411.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700412\&\h'|\n(40u'\f4\-d <directory>\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000413.mk ##
414.nr 31 \n(##
415.sp |\n(##u-1v
416.nr 37 \n(41u
417.in +\n(37u
418.c+
419.in -\n(37u
420.mk 32
421.if \n(32>\n(31 .nr 31 \n(32
422.sp |\n(31u
423.ne \n(d|u+\n(.Vu
424.if (\n(d|+\n(#^-1v)>\n(#- .nr #- +(\n(d|+\n(#^-\n(#--1v)
425.ta \n(80u \n(81u
426.nr 31 \n(.f
427.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700428\&\h'|\n(40u'\f4\-extension\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000429.mk ##
430.nr 31 \n(##
431.sp |\n(##u-1v
432.nr 37 \n(41u
433.in +\n(37u
434.d+
435.in -\n(37u
436.mk 32
437.if \n(32>\n(31 .nr 31 \n(32
438.sp |\n(31u
439.ta \n(80u \n(81u
440.nr 31 \n(.f
441.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700442\&\h'|\n(40u'\f4\-help\fP\h'|\n(41u'Display help
duke6e45e102007-12-01 00:00:00 +0000443.ta \n(80u \n(81u
444.nr 31 \n(.f
445.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700446\&\h'|\n(40u'\f4\-keep\fP\h'|\n(41u'Keep generated files
duke6e45e102007-12-01 00:00:00 +0000447.ne \n(e|u+\n(.Vu
448.if (\n(e|+\n(#^-1v)>\n(#- .nr #- +(\n(e|+\n(#^-\n(#--1v)
449.ta \n(80u \n(81u
450.nr 31 \n(.f
451.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700452\&\h'|\n(40u'\f4\-r <directory>\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000453.mk ##
454.nr 31 \n(##
455.sp |\n(##u-1v
456.nr 37 \n(41u
457.in +\n(37u
458.e+
459.in -\n(37u
460.mk 32
461.if \n(32>\n(31 .nr 31 \n(32
462.sp |\n(31u
463.ne \n(f|u+\n(.Vu
464.if (\n(f|+\n(#^-1v)>\n(#- .nr #- +(\n(f|+\n(#^-\n(#--1v)
465.ta \n(80u \n(81u
466.nr 31 \n(.f
467.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700468\&\h'|\n(40u'\f4\-s <directory>\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000469.mk ##
470.nr 31 \n(##
471.sp |\n(##u-1v
472.nr 37 \n(41u
473.in +\n(37u
474.f+
475.in -\n(37u
476.mk 32
477.if \n(32>\n(31 .nr 31 \n(32
478.sp |\n(31u
479.ne \n(g|u+\n(.Vu
480.if (\n(g|+\n(#^-1v)>\n(#- .nr #- +(\n(g|+\n(#^-\n(#--1v)
481.ta \n(80u \n(81u
482.nr 31 \n(.f
483.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700484\&\h'|\n(40u'\f4\-verbose\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000485.mk ##
486.nr 31 \n(##
487.sp |\n(##u-1v
488.nr 37 \n(41u
489.in +\n(37u
490.g+
491.in -\n(37u
492.mk 32
493.if \n(32>\n(31 .nr 31 \n(32
494.sp |\n(31u
495.ne \n(h|u+\n(.Vu
496.if (\n(h|+\n(#^-1v)>\n(#- .nr #- +(\n(h|+\n(#^-\n(#--1v)
497.ta \n(80u \n(81u
498.nr 31 \n(.f
499.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700500\&\h'|\n(40u'\f4\-version\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000501.mk ##
502.nr 31 \n(##
503.sp |\n(##u-1v
504.nr 37 \n(41u
505.in +\n(37u
506.h+
507.in -\n(37u
508.mk 32
509.if \n(32>\n(31 .nr 31 \n(32
510.sp |\n(31u
511.ne \n(i|u+\n(.Vu
duke6e45e102007-12-01 00:00:00 +0000512.if (\n(i|+\n(#^-1v)>\n(#- .nr #- +(\n(i|+\n(#^-\n(#--1v)
duke6e45e102007-12-01 00:00:00 +0000513.ta \n(80u \n(81u
514.nr 31 \n(.f
515.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700516\&\h'|\n(40u'\f4\-wsdl[:protocol]\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000517.mk ##
518.nr 31 \n(##
519.sp |\n(##u-1v
tbell16c34dd2009-05-04 18:28:26 -0700520.nr 37 \n(41u
duke6e45e102007-12-01 00:00:00 +0000521.in +\n(37u
522.i+
523.in -\n(37u
524.mk 32
525.if \n(32>\n(31 .nr 31 \n(32
tbell16c34dd2009-05-04 18:28:26 -0700526.sp |\n(31u
527.ne \n(j|u+\n(.Vu
528.if (\n(j|+\n(#^-1v)>\n(#- .nr #- +(\n(j|+\n(#^-\n(#--1v)
529.ta \n(80u \n(81u
530.nr 31 \n(.f
531.nr 35 1m
532\&\h'|\n(40u'\f4\-servicename <name>\fP\h'|\n(41u'
533.mk ##
534.nr 31 \n(##
duke6e45e102007-12-01 00:00:00 +0000535.sp |\n(##u-1v
536.nr 37 \n(41u
537.in +\n(37u
538.j+
539.in -\n(37u
540.mk 32
541.if \n(32>\n(31 .nr 31 \n(32
542.sp |\n(31u
543.ne \n(k|u+\n(.Vu
544.if (\n(k|+\n(#^-1v)>\n(#- .nr #- +(\n(k|+\n(#^-\n(#--1v)
545.ta \n(80u \n(81u
546.nr 31 \n(.f
547.nr 35 1m
tbell16c34dd2009-05-04 18:28:26 -0700548\&\h'|\n(40u'\f4\-portname <name>\fP\h'|\n(41u'
duke6e45e102007-12-01 00:00:00 +0000549.mk ##
550.nr 31 \n(##
551.sp |\n(##u-1v
552.nr 37 \n(41u
553.in +\n(37u
554.k+
555.in -\n(37u
556.mk 32
557.if \n(32>\n(31 .nr 31 \n(32
558.sp |\n(31u
duke6e45e102007-12-01 00:00:00 +0000559.fc
560.nr T. 1
561.T# 1
562.35
563.rm a+
564.rm b+
565.rm c+
566.rm d+
567.rm e+
568.rm f+
569.rm g+
570.rm h+
571.rm i+
572.rm j+
573.rm k+
duke6e45e102007-12-01 00:00:00 +0000574.TE
tbell16c34dd2009-05-04 18:28:26 -0700575.if \n-(b.=0 .nr c. \n(.c-\n(d.-53
duke6e45e102007-12-01 00:00:00 +0000576
577.LP
duke6e45e102007-12-01 00:00:00 +0000578.SH "Example"
duke6e45e102007-12-01 00:00:00 +0000579.nf
580\f3
581.fl
tbell16c34dd2009-05-04 18:28:26 -0700582\fP\f3wsgen \-d stock \-cp myclasspath stock.StockService\fP
duke6e45e102007-12-01 00:00:00 +0000583.fl
duke6e45e102007-12-01 00:00:00 +0000584.fi
duke6e45e102007-12-01 00:00:00 +0000585.LP
tbell16c34dd2009-05-04 18:28:26 -0700586This will generate the wrapper classes needed for StockService annotated with @WebService annotation inside \f3stock\fPdirectory.
587.nf
588\f3
589.fl
590\fP\f3wsgen \-wsdl \-d stock \-cp myclasspath stock.StockService\fP
591.fl
592.fi
duke6e45e102007-12-01 00:00:00 +0000593.LP
tbell16c34dd2009-05-04 18:28:26 -0700594This will generate a SOAP 1.1 WSDL and schema for your Java class stock.StockService annotated with @WebService annotation.
595.nf
596\f3
597.fl
598\fP\f3wsgen \-wsdl:Xsoap1.2 \-d stock \-cp myclasspath stock.StockService\fP
599.fl
600.fi
601.LP
602Will generate a SOAP 1.2 WSDL.
603.LP
604Note 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.