wsgen.1 revision 0
t

Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation.

This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).

You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
CA 95054 USA or visit www.sun.com if you need additional information or
have any questions.

`
wsgen 1 "2006 ǯ 9 �� 4 ��" "Java SE 6" "�桼�������ޥ��"
." Generated by html2man

̾��
wsgen - JAX-WS 2.0 �١���

\f2wsgen �ġ���ϡ�JAX-WS Web �����ӥ��ǻ��Ѥ���� JAX-WS �ݡ����֥륢���ƥ��ե����Ȥ��������ޤ������Υġ���ϡ������ӥ�����ɥݥ���ȼ������饹 (SEI) ���ɤ߼�ꡢWeb �����ӥ��������ȸƤӽФ���ɬ�פʤ��٤ƤΥ����ƥ��ե����Ȥ��������ޤ���

"����"

\f3
.fl
wsgen [options] <SEI>
.fl

"���ץ����"

����ɽ�ˡ�\f2wsgen �Υ��ץ����򼨤��ޤ���

ɽ 1-1 wsgen �Υ��ץ����

���ץ���� �ܺ�
-classpath <path> ���ϥ��饹�ե�����θ���������ꤷ�ޤ�
-cp <path>
-classpath <path> ��Ʊ��
-d <directory> �����������ϥե�������Ǽ���������ꤹ��
-extension
�٥������ĥ (���ͤǵ��ꤵ��Ƥ��ʤ���ǽ) ����Ĥ��ޤ�����ĥ����Ѥ���ȡ����ץꥱ�������ΰܿ���������줿�ꡢ�ۤ��μ����Ȥ���߱��Ѥ��Ԥ��ʤ��ʤ����������ޤ�
-help
�إ�פ�ɽ�����ޤ�
-keep
�������줿�ե�������ݻ�ޤ�
-r <directory>
��� -wsdl ���ץ������Ȥ߹�碌�ƻ��Ѥ��ޤ���WSDL �ʤɤ��������줿�꥽�����ե�����γ�Ǽ������ꤷ�ޤ�
-s <directory>
��������륽�����ե�������Ǽ���������ꤹ��
-verbose
����ѥ��餬�¹Ԥ��Ƥ������˴ؤ����å���������Ϥ��ޤ�
-version
�С������������Ϥ��ޤ������Υ��ץ�������Ѥ�����硢�С��������󤬽��Ϥ��������Ǥ����̾�ν���ϼ¹Ԥ���ޤ���
-wsdl[:protocol]
wsgen �ϥǥե���ȤǤ� WSDL �ե�������������ޤ��󡣤��Υե饰�Ͼ�ά��ǽ�Ǥ��������ꤷ������ wsgen �� WSDL �ե��������������褦�ˤʤ�ޤ������Υե饰���̾����ɥݥ���Ȥ��������˳�ȯ�Ԥ� WSDL �򻲾ȤǤ���褦�ˤ��뤿������˻��Ѥ���ޤ���protocol �Ͼ�ά��ǽ�Ǥ��ꡢwsdl:binding �ǻ��Ѥ��٤��ץ�ȥ������ꤹ�뤿��˻��Ѥ���ޤ���ͭ��ʥץ�ȥ���ϼ��ΤȤ���� ���� soap1.1 �� Xsoap1.2���ǥե���Ȥ� soap1.1 �Ǥ���Xsoap1.2 ��ɸ��ǤϤʤ��� �ᡢ-extension ���ץ������Ȥ߹�碌�ʤ��Ȼ��ѤǤ��ޤ���
-servicename <name>
��� -wsdl ���ץ������Ȥ߹�碌�ƻ��Ѥ��ޤ���WSDL ������������٤� wsdl:service ��̾������ꤹ�뤿��˻��Ѥ��ޤ����� : -servicename "{http://mynamespace/}MyService"
-portname <name>
��� -wsdl ���ץ������Ȥ߹�碌�ƻ��Ѥ��ޤ���WSDL ������������٤� wsdl:port ��̾ ������ꤹ�뤿��˻��Ѥ��ޤ����� : -portname "{http://mynamespace/}MyPort"

Ant ������

\f2wsgen �ġ���ˤϡ����Υġ����Ѥ� Ant ����������°���Ƥ��ޤ������� Ant �����������ݡ��Ȥ���°�������Ǥ򡢼��˼����ޤ���

\f3
.fl
 
.fl
 <wsgen 
.fl
 sei="..."
.fl
 destdir="directory for generated class files" 
.fl
 classpath="classpath" | cp="classpath"
.fl
 resourcedestdir="directory for generated resource files such as WSDLs"
.fl
 sourcedestdir="directory for generated source files" 
.fl
 keep="true|false"
.fl
 verbose="true|false"
.fl
 genwsdl="true|false" 
.fl
 protocol="soap1.1|Xsoap1.2"
.fl
 servicename="..."
.fl
 portname="...">
.fl
 extension="true|false"
.fl
 <classpath refid="..."/>
.fl
 </wsgen>
.fl

°�� ���� ���ޥ�ɹ�
sei �����ӥ�����ɥݥ���ȼ������饹��̾�� SEI
destdir
�����������ϥ��饹���Ǽ���������ꤷ�ޤ�
-d
classpath ���ϥ��饹�ե�����θ���������ꤷ�ޤ� -classpath
cp -classpath ��Ʊ�� -cp
resourcedestdir
��� -wsdl ���ץ������Ȥ߹�碌�ƻ��Ѥ��ޤ���WSDL �ʤɤ��������줿�꥽�����ե�����γ�Ǽ������ꤷ�ޤ�
-r
sourcedestdir
��������륽�����ե�������Ǽ���������ꤷ�ޤ�
-s
keep �������줿�ե�������ݻ�ޤ� -keep
verbose
����ѥ��餬�¹Ԥ��Ƥ������˴ؤ����å���������Ϥ��ޤ�
-verbose
genwsdl
WSDL �ե�������� �����٤����ɤ�������ꤷ�ޤ�
-wsdl
protocol
genwsdl ���Ȥ߹�碌�ƻ��Ѥ��ޤ���wsdl:binding �ǻ��Ѥ���ץ�ȥ������ꤷ�ޤ���ͭ����ͤϡ�soap1.1�פȡ�Xsoap1.2�פǡ��ǥե���Ȥϡ�soap1.1�פǤ�����Xsoap1.2�פ�ɸ��ǤϤʤ����ᡢ-extensions ���ץ������Ȥ߹�碌�ʤ��Ȼ��ѤǤ��ޤ���
-wsdl:soap11
servicename
genwsdl ���ץ������Ȥ߹�碌�ƻ��Ѥ��ޤ������������ WSDL �� wsdl:service ��̾������ꤹ�뤿��˻��Ѥ��ޤ����� : servicename="{http://mynamespace/}MyService"
-servicename
portname
genwsdl ���ץ������Ȥ߹�碌�ƻ��Ѥ��ޤ������������ WSDL �� wsdl:portname ��̾������ꤹ�뤿��˻��Ѥ��ޤ����� : portname="{http://mynamespace/}MyPort"
-servicename
extension
�٥������ĥ (���ͤǵ��ꤵ��Ƥ��ʤ���ǽ) ����Ĥ��ޤ�����ĥ����Ѥ���ȡ����ץꥱ�������ΰܿ���������줿�ꡢ�ۤ��μ����Ȥ���߱��Ѥ��Ԥ��ʤ��ʤ��ǽ��������ޤ�
-extension

\f2classpath °���ϡ� \f2Path-like Structure

(http://ant.apache.org/manual/using.html#path) �Ǥ��ꡢ����Ҥˤʤä� \f2<classpath> ���Ǥ�Ȥä����ꤹ�뤳�Ȥ�Ǥ��ޤ������Υ���������Ѥ���ˤϡ����� \f2<taskdef> ���Ǥ�ץ?�����Ȥ��ɲä��Ƥ���ɬ�פ�����ޤ���

\f3
.fl
 <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen">
.fl
 <classpath path="jaxws.classpath"/>
.fl
 </taskdef>
.fl

�����ǡ�\f2jaxws.classpath �ϡ�JAX-WS �ġ��뤬ɬ�פȤ��륯�饹�Υꥹ�Ȥ�ޤࡢ�ӥ�ɴĶ�����̤ξ���������줿 \f2Path-like Structure

(http://ant.apache.org/manual/using.html#path) �ؤλ��ȤǤ���

"��"

\f3
.fl
<wsgen 
.fl
 resourcedestdir="${wsdl.dir}"
.fl
 sei="fromjava.server.AddNumbersImpl">
.fl
 <classpath refid="compile.classpath"/>
.fl
</wsgen>
.fl