rgallard | b643545 | 2013-11-25 20:19:02 -0800 | [diff] [blame] | 1 | '\" t |
| 2 | .\" Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
| 3 | .\"
|
| 4 | .\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
| 5 | .\"
|
| 6 | .\" This code is free software; you can redistribute it and/or modify it
|
| 7 | .\" under the terms of the GNU General Public License version 2 only, as
|
| 8 | .\" published by the Free Software Foundation.
|
| 9 | .\"
|
| 10 | .\" This code is distributed in the hope that it will be useful, but WITHOUT
|
| 11 | .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
| 12 | .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
| 13 | .\" version 2 for more details (a copy is included in the LICENSE file that
|
| 14 | .\" accompanied this code).
|
| 15 | .\"
|
| 16 | .\" You should have received a copy of the GNU General Public License version
|
| 17 | .\" 2 along with this work; if not, write to the Free Software Foundation,
|
| 18 | .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
| 19 | .\"
|
| 20 | .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
| 21 | .\" or visit www.oracle.com if you need additional information or have any
|
| 22 | .\" questions.
|
| 23 | .\"
|
| 24 | .\" Arch: generic |
| 25 | .\" Software: JDK 8 |
| 26 | .\" Date: 21 November 2013 |
| 27 | .\" SectDesc: Java Web Services Tools |
| 28 | .\" Title: wsgen.1 |
| 29 | .\" |
| 30 | .if n .pl 99999 |
| 31 | .TH wsgen 1 "21 November 2013" "JDK 8" "Java Web Services Tools" |
| 32 | .\" -----------------------------------------------------------------
|
| 33 | .\" * Define some portability stuff
|
| 34 | .\" -----------------------------------------------------------------
|
| 35 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 36 | .\" http://bugs.debian.org/507673
|
| 37 | .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
| 38 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 39 | .ie \n(.g .ds Aq \(aq
|
| 40 | .el .ds Aq '
|
| 41 | .\" -----------------------------------------------------------------
|
| 42 | .\" * set default formatting
|
| 43 | .\" -----------------------------------------------------------------
|
| 44 | .\" disable hyphenation
|
| 45 | .nh
|
| 46 | .\" disable justification (adjust text to left margin only)
|
| 47 | .ad l
|
| 48 | .\" -----------------------------------------------------------------
|
| 49 | .\" * MAIN CONTENT STARTS HERE *
|
| 50 | .\" -----------------------------------------------------------------
|
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 51 | |
rgallard | b643545 | 2013-11-25 20:19:02 -0800 | [diff] [blame] | 52 | .SH NAME |
| 53 | wsgen \- Reads a web service endpoint implementation (SEI) class and generates all of the required artifacts for web service deployment, and invocation\&. |
| 54 | .SH SYNOPSIS |
| 55 | .sp |
| 56 | .nf |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 57 | |
rgallard | b643545 | 2013-11-25 20:19:02 -0800 | [diff] [blame] | 58 | \fBwsgen\fR [ \fIoptions\fR ] \fISEI\fR |
| 59 | .fi |
| 60 | .sp |
| 61 | .TP |
| 62 | \fIoptions\fR |
| 63 | The command-line options\&. See Options\&. |
| 64 | .TP |
| 65 | \fISEI\fR |
| 66 | The web service endpoint implementation class (SEI) to be read\&. |
| 67 | .SH DESCRIPTION |
| 68 | The \f3wsgen\fR command 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 \f3wsgen\fR Ant task, see the \fITools\fR tab of the JAX-WS (wsgen) page at http://jax-ws\&.java\&.net/nonav/2\&.1\&.1/docs/wsgenant\&.html |
| 69 | .PP |
| 70 | To start the \f3wsgen\fR command, do the following: |
| 71 | .sp |
| 72 | .nf |
| 73 | \f3export JAXWS_HOME=/pathto/jaxws\-ri\fP |
| 74 | .fi |
| 75 | .nf |
| 76 | \f3$JAXWS_HOME/bin/wsgen\&.sh \-help\fP |
| 77 | .fi |
| 78 | .nf |
| 79 | \f3\fP |
| 80 | .fi |
| 81 | .sp |
| 82 | .SH OPTIONS |
| 83 | .TP |
| 84 | -classpath \fIpath\fR |
| 85 | .br |
| 86 | The location of the input class files\&. |
| 87 | .TP |
| 88 | -cp \fIpath\fR |
| 89 | .br |
| 90 | The location of the input class files\&. |
| 91 | .TP |
| 92 | -d \fIdirectory\fR |
| 93 | .br |
| 94 | The location for where to place generated output files\&. |
| 95 | .TP |
| 96 | -extension |
| 97 | .br |
| 98 | Allow vendor extensions\&. Use of extensions can result in applications that are not portable or that do not work with other implementations\&. |
| 99 | .TP |
| 100 | -help |
| 101 | .br |
| 102 | Displays a help message about the \f3wsgen\fR command\&. |
| 103 | .TP |
| 104 | -keep |
| 105 | .br |
| 106 | Keeps the generated files\&. |
| 107 | .TP |
| 108 | -r \fIdirectory\fR |
| 109 | .br |
| 110 | Uses this option with the \f3-wsdl\fR option to specify where to place generated resource files such as WSDLs\&. |
| 111 | .TP |
| 112 | -s \fIdirectory\fR |
| 113 | .br |
| 114 | The location for where to place generated source files\&. |
| 115 | .TP |
| 116 | -verbose |
| 117 | .br |
| 118 | Displays compiler messages\&. |
| 119 | .TP |
| 120 | -version |
| 121 | .br |
| 122 | Prints release information\&. |
| 123 | .TP |
| 124 | -wsdl [ :protocol ] \fI\fR |
| 125 | .br |
| 126 | An optional command that generates a WSDL file to review before endpoint deployment\&. The WSDL files contains a machine-readable description of how the service can be called, what parameters it expects, and what data structures it returns\&. |
| 127 | |
| 128 | By default the \f3wsgen\fR command does not generate a WSDL file\&. The \f3protocol\fR value is optional and is used to specify what protocol should be used for the WSDL binding (\f3wsdl:binding\fR)\&. Valid protocols are \f3soap1\&.1\fR and \f3Xsoap1\&.2\fR\&. The default is \f3soap1\&.1\fR\&. The \f3Xsoap1\&.2\fR protocol is not standard and can only be used with the \f3-extension\fR option\&. |
| 129 | .TP |
| 130 | -servicename \fIname\fR |
| 131 | .br |
| 132 | Used only with the \f3-wsdl\fR option to specify a particular WSDL service (\f3wsdl:service\fR) name to be generated in the WSDL, for example: \f3-servicename "{http://mynamespace/}MyService"\fR\&. |
| 133 | .TP |
| 134 | -portname \fIname\fR |
| 135 | .br |
| 136 | Used only with the \f3-wsdl\fR option to specify a particular WSDL port (\f3wsdl:port\fR) name to be generated in the WSDL, for example: \f3-portname "{http://mynamespace/}MyPort"\fR\&. |
| 137 | .SH EXAMPLES |
| 138 | The following example generates the wrapper classes for \f3StockService\fR with \f3@WebService\fR annotations inside stock directory\&. |
| 139 | .sp |
| 140 | .nf |
| 141 | \f3wsgen \-d stock \-cp myclasspath stock\&.StockService\fP |
| 142 | .fi |
| 143 | .nf |
| 144 | \f3\fP |
| 145 | .fi |
| 146 | .sp |
| 147 | The following example generates a SOAP 1\&.1 WSDL and schema for the \f3stock\&.StockService\fR class with \f3@WebService\fR annotations\&. |
| 148 | .sp |
| 149 | .nf |
| 150 | \f3wsgen \-wsdl \-d stock \-cp myclasspath stock\&.StockService\fP |
| 151 | .fi |
| 152 | .nf |
| 153 | \f3\fP |
| 154 | .fi |
| 155 | .sp |
| 156 | The following example generates a SOAP 1\&.2 WSDL\&. |
| 157 | .sp |
| 158 | .nf |
| 159 | \f3wsgen \-wsdl:Xsoap1\&.2 \-d stock \-cp myclasspath stock\&.StockService \fP |
| 160 | .fi |
| 161 | .nf |
| 162 | \f3\fP |
| 163 | .fi |
| 164 | .sp |
| 165 | \fINote:\fR You do not have to generate WSDL at development time because the JAXWS run time environment generates a WSDL for you when you deploy your service\&. |
| 166 | .SH SEE\ ALSO |
| 167 | .TP 0.2i |
| 168 | \(bu |
| 169 | wsimport(1) |
| 170 | .TP 0.2i |
| 171 | \(bu |
| 172 | \fIThe Tools\fR tab of the JAX-WS (wsgen) page http://jax-ws\&.java\&.net/nonav/2\&.1\&.1/docs/wsgenant\&.html |
| 173 | .RE
|
| 174 | .br
|
| 175 | 'pl 8.5i
|
| 176 | 'bp
|