wsgen.1 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. '\" t
  2. .\" Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
  3. .\" Arch: generic
  4. .\" Software: JDK 8
  5. .\" Date: 21 November 2013
  6. .\" SectDesc: Java Web Services Tools
  7. .\" Title: wsgen.1
  8. .\"
  9. .if n .pl 99999
  10. .TH wsgen 1 "21 November 2013" "JDK 8" "Java Web Services Tools"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH NAME
  31. wsgen \- Reads a web service endpoint implementation (SEI) class and generates all of the required artifacts for web service deployment, and invocation\&.
  32. .SH SYNOPSIS
  33. .sp
  34. .nf
  35. \fBwsgen\fR [ \fIoptions\fR ] \fISEI\fR
  36. .fi
  37. .sp
  38. .TP
  39. \fIoptions\fR
  40. The command-line options\&. See Options\&.
  41. .TP
  42. \fISEI\fR
  43. The web service endpoint implementation class (SEI) to be read\&.
  44. .SH DESCRIPTION
  45. 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
  46. .PP
  47. To start the \f3wsgen\fR command, do the following:
  48. .sp
  49. .nf
  50. \f3export JAXWS_HOME=/pathto/jaxws\-ri\fP
  51. .fi
  52. .nf
  53. \f3$JAXWS_HOME/bin/wsgen\&.sh \-help\fP
  54. .fi
  55. .nf
  56. \f3\fP
  57. .fi
  58. .sp
  59. .SH OPTIONS
  60. .TP
  61. -classpath \fIpath\fR
  62. .br
  63. The location of the input class files\&.
  64. .TP
  65. -cp \fIpath\fR
  66. .br
  67. The location of the input class files\&.
  68. .TP
  69. -d \fIdirectory\fR
  70. .br
  71. The location for where to place generated output files\&.
  72. .TP
  73. -extension
  74. .br
  75. Allow vendor extensions\&. Use of extensions can result in applications that are not portable or that do not work with other implementations\&.
  76. .TP
  77. -help
  78. .br
  79. Displays a help message about the \f3wsgen\fR command\&.
  80. .TP
  81. -keep
  82. .br
  83. Keeps the generated files\&.
  84. .TP
  85. -r \fIdirectory\fR
  86. .br
  87. Uses this option with the \f3-wsdl\fR option to specify where to place generated resource files such as WSDLs\&.
  88. .TP
  89. -s \fIdirectory\fR
  90. .br
  91. The location for where to place generated source files\&.
  92. .TP
  93. -verbose
  94. .br
  95. Displays compiler messages\&.
  96. .TP
  97. -version
  98. .br
  99. Prints release information\&.
  100. .TP
  101. -wsdl [ :protocol ] \fI\fR
  102. .br
  103. 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\&.
  104. 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\&.
  105. .TP
  106. -servicename \fIname\fR
  107. .br
  108. 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\&.
  109. .TP
  110. -portname \fIname\fR
  111. .br
  112. 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\&.
  113. .SH EXAMPLES
  114. The following example generates the wrapper classes for \f3StockService\fR with \f3@WebService\fR annotations inside stock directory\&.
  115. .sp
  116. .nf
  117. \f3wsgen \-d stock \-cp myclasspath stock\&.StockService\fP
  118. .fi
  119. .nf
  120. \f3\fP
  121. .fi
  122. .sp
  123. The following example generates a SOAP 1\&.1 WSDL and schema for the \f3stock\&.StockService\fR class with \f3@WebService\fR annotations\&.
  124. .sp
  125. .nf
  126. \f3wsgen \-wsdl \-d stock \-cp myclasspath stock\&.StockService\fP
  127. .fi
  128. .nf
  129. \f3\fP
  130. .fi
  131. .sp
  132. The following example generates a SOAP 1\&.2 WSDL\&.
  133. .sp
  134. .nf
  135. \f3wsgen \-wsdl:Xsoap1\&.2 \-d stock \-cp myclasspath stock\&.StockService \fP
  136. .fi
  137. .nf
  138. \f3\fP
  139. .fi
  140. .sp
  141. \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\&.
  142. .SH SEE\ ALSO
  143. .TP 0.2i
  144. \(bu
  145. wsimport(1)
  146. .TP 0.2i
  147. \(bu
  148. \fIThe Tools\fR tab of the JAX-WS (wsgen) page http://jax-ws\&.java\&.net/nonav/2\&.1\&.1/docs/wsgenant\&.html
  149. .RE
  150. .br
  151. 'pl 8.5i
  152. 'bp