1wsgen(1)                    General Commands Manual                   wsgen(1)
2
3
4

NAME

6       wsgen - JAX-WS 2.0 Beta
7
8          The  wsgen  tool  generates JAX-WS portable artifacts used in JAX-WS
9          web services. The tool reads a web service  endpoint  implementation
10          class (SEI) and generates all the required artifacts for web service
11          deployment, and invocation.
12

SYNOPSIS

14       wsgen [options] <SEI>
15
16

OPTIONS

18       The following table lists the wsgen options.
19
20
21       Table 1-1 wsgen Options
22
23   Ant task
24       An Ant task for the wsgen tool is provided along  with  the  tool.  The
25       attributes and elements supported by the Ant task are listed below:
26
27           <wsgen
28                sei="..."
29                destdir="directory for generated class files"
30                classpath="classpath" | cp="classpath"
31                resourcedestdir="directory for generated resource files such as WSDLs"
32                sourcedestdir="directory for generated source files"
33                keep="true|false"
34                verbose="true|false"
35                genwsdl="true|false"
36                protocol="soap1.1|Xsoap1.2"
37                servicename="..."
38                portname="...">
39                extension="true|false"
40                <classpath refid="..."/>
41            </wsgen>
42
43
44       The classpath attribute is a path-like structure @
45       http://ant.apache.org/manual/using.html#path and can also be set via
46       nested <classpath> elements. Before this task can be used, a <taskdef>
47       element needs to be added to the project as given below:
48
49         <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen">
50             <classpath path="jaxws.classpath"/>
51         </taskdef>
52
53
54       where jaxws.classpath is a reference to a path-like structure @
55       http://ant.apache.org/manual/using.html#path, defined elsewhere in the
56       build environment, and contains the list of classes required by the
57       JAX-WS tools.
58

Example

60       <wsgen
61             resourcedestdir="${wsdl.dir}"
62             sei="fromjava.server.AddNumbersImpl">
63             <classpath refid="compile.classpath"/>
64       </wsgen>
65
66
67                                  07 Aug 2006                         wsgen(1)
Impressum