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

Name

6       wsgen - Java(TM) API for XML Web Services (JAX-WS) 2.0
7
8       Specification Version: 2.1
9       Implementation Version: 2.1.1
10
11       The  wsgen  tool generates JAX-WS portable artifacts used in JAX-WS web
12       services. The tool reads a web service  endpoint  implementation  class
13       (SEI)  and generates all the required artifacts for web service deploy‐
14       ment, and invocation
15

Overview

17       The wsgen tool generates JAX-WS portable artifacts used in  JAX-WS  web
18       services. The tool reads a web service endpoint class and generates all
19       the required artifacts for  web  service  deployment,  and  invocation.
20       JAXWS 2.1.1 RI also provides a wsgen ant task, see Wsgen ant task @
21       https://jax-ws.dev.java.net/nonav/2.1.1/docs/wsgenant.html for details.
22

Launching wsgen

24          o Solaris/Linux
25
26             * export JAXWS_HOME=/pathto/jaxws-ri
27
28             * $JAXWS_HOME/bin/wsgen.sh -help
29
30          o Windows
31
32             * set JAXWS_HOME=c:\pathto\jaxws-ri
33
34             * %JAXWS_HOME%\bin\wsgen.bat -help
35
36

Syntax

38       wsgen [options] <SEI>
39
40       The following table lists the wsgen options.
41

Example

43       wsgen -d stock -cp myclasspath stock.StockService
44
45       This will generate the wrapper classes needed for StockService anno‐
46       tated with @WebService annotation inside stockdirectory.
47       wsgen -wsdl -d stock -cp myclasspath stock.StockService
48
49       This will generate a SOAP 1.1 WSDL and schema for your Java class
50       stock.StockService annotated with @WebService annotation.
51       wsgen -wsdl:Xsoap1.2 -d stock -cp myclasspath stock.StockService
52
53       Will generate a SOAP 1.2 WSDL.
54
55       Note that you do not have to generate WSDL at the development time as
56       JAXWS runtime will automatically generate a WSDL for you when you
57       deploy your service.
58
59
60
61                                  16 Mar 2012                         wsgen(1)
Impressum