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.
`
\f3 .fl wsimport [options] <wsdl> .fl
\f2wsimport �ġ���ϡ����Τ褦�� JAX-WS �ݡ����֥륢���ƥ��ե����Ȥ��������ޤ���
2 o �����ӥ�����ɥݥ���ȥ��ե����� (SEI)
2 o �����ӥ�
2 o wsdl:fault ����ޥåפ�����㳰���饹 (¸�ߤ�����)
2 o ���� wsdl:message ��������������Ʊ����� Bean (¸�ߤ�����)
2 o JAX-B �����������ͥ����� (�������ޤη�����ޥåפ��줿 Java ���饹)
�����Υ����ƥ��ե����Ȥϡ�WSDL �ɥ�����ȡ��������ޥɥ�����ȡ�����ӥ���ɥݥ���ȼ����ȤȤ�� WAR �ե�������˥ѥå������������������뤳�Ȥ��Ǥ��ޤ���
wsimport �ġ����ư����ˤϡ����ޥ�ɹԥ�����ץ� wsimport.sh (Unix) �ޤ��� wsimport.bat (Windows) ����Ѥ��ޤ���WSDL ��ݡ��Ȥ���ӥ���ѥ��뤹�뤿��� Ant ��������¸�ߤ��Ƥ��ޤ����ܤ����ϸ�Ҥ������Ȥ��Ƥ���������
����ɽ�ˡ�\f2wsimport �Υ��ץ������ޤ���
ɽ 1-1 wsimport �Υ��ץ����
���ץ���� ���� |
-d <directory> �����������ϥե�������Ǽ���������ꤷ�ޤ� |
-b <path> |
������ JAX-WS �ޤ��� JAXB �Х���ǥ��ե��������ꤷ�ޤ� (<file> ���Ȥ� -b ��ɬ�פȤʤ�) |
-catalog |
��������ƥ��ƥ����Ȥ��褹�뤿��Υ����?�ե��������ꤷ�ޤ���TR9401��XCatalog��OASIS XML Catalog �γƷ��������ݡ��Ȥ���Ƥ��ޤ�����XML Entity and URI Resolvers�ץɥ�����Ȥ��ɤߤˤʤ뤫��wsimport_catalog ����ץ�Ȥ��Ƥ��������� |
-extension |
�٥������ĥ (���ͤǵ��ꤵ��Ƥ��ʤ���ǽ) ����Ĥ��ޤ�����ĥ����Ѥ���ȡ����ץꥱ�������ΰܿ���������줿�ꡢ�ۤ��μ����Ȥ���߱��Ѥ��Ԥ��ʤ��ʤ��ǽ��������ޤ� |
-help �إ�פ�ɽ�����ޤ� |
-httpproxy:<host>:<port> |
HTTP �ץ?�������С�����ꤷ�ޤ� (�ǥե���ȤΥݡ��Ȥ� 8080) |
-keep �������줿�ե�������ݻ�ޤ� |
-p |
���Υ��ޥ�ɹԥ��ץ�����ͳ�ǥ������åȥѥå���������ꤷ����硢���λ������Ƥϡ��ѥå�����̾���Ф��뤹�٤Ƥ� WSDL/�������ޥХ���ǥ��������ޥ����䡢 ���ͤǵ��ꤵ��Ƥ���ǥե���ȤΥѥå�����̾���르�ꥺ�����ͥ�褵��ޤ� |
-s <directory> |
��������륽�����ե�������Ǽ���������ꤷ�ޤ� |
-verbose |
����ѥ��餬�¹Ԥ��Ƥ������˴ؤ����å���������Ϥ��ޤ� |
-version �С������������Ϥ��ޤ� |
-wsdllocation <location> |
@WebService.wsdlLocation �� @WebServiceClient.wsdlLocation ���� |
\f2-b ���ץ�����Ȥäơ�ʣ���� JAX-WS ����� JAXB �Х���ǥ��ե���������Ǥ��ޤ��� �����Υե������Ȥäơ��ѥå�����̾�� Bean ̾�ʤɡ����ޤ��ޤʥ������ޥ�������ǽ�Ǥ��� JAX-WS ����� JAXB �Х���ǥ��ե�����ξܺ٤ˤĤ��Ƥϡ��������ޥ����ޥ˥奢��Ȥ��Ƥ���������
\f2wsimport �ġ���ˤϡ����Υġ����Ѥ� Ant ����������°���Ƥ��ޤ������� Ant �����������ݡ��Ȥ���°�������Ǥ��˼����ޤ���
\f3 .fl <wsimport .fl wsdl="..." .fl destdir="directory for generated class files" .fl sourcedestdir="directory for generated source files" .fl keep="true|false" .fl extension="true|false" .fl verbose="true|false" .fl version="true|false" .fl wsdlLocation="..." .fl catalog="catalog file" .fl package="package name" .fl <binding dir="..." includes="..." /> .fl </wsimport> .fl
°�� ���� ���ޥ�ɹ� |
wsdl WSDL file WSDL |
destdir �����������ϥ��饹���Ǽ���������ꤷ�ޤ� -d |
sourcedestdir |
�������줿�������ե�����γ�Ǽ������ꤷ�ޤ������Υ��ץ����λ�����ˤ� keep �⥪��ˤʤ�ޤ��� |
-s |
keep |
�������줿�ե�������ݻ�ޤ���sourcedestdir ���ץ���������˥���ˤʤ�ޤ� |
-keep |
verbose |
����ѥ��餬�¹Ԥ��Ƥ������˴ؤ����å���������Ϥ��ޤ� |
-verbose |
binding |
������ JAX-WS �ޤ��� JAXB �Х���ǥ��ե��������ꤷ�ޤ� |
-b |
extension |
�٥������ĥ (���ͤǵ��ꤵ��Ƥ��ʤ���ǽ) ����Ĥ��ޤ�����ĥ����Ѥ���ȡ����ץꥱ�������ΰܿ���������줿�ꡢ�ۤ��μ����Ȥ���߱��Ѥ��Ԥ��ʤ��ʤ��ǽ��������ޤ� |
-extension |
wsdllocation |
���Υ��ץ�����ͳ �� �� �� �줿WSDL �� URI �ϡ��� �� ���줿 SEI����ӥ����ӥ����ե��������@WebService.wsdlLocation�� �� ��@WebServiceClient.wsdlLocation������Ǥ��ͤ����ꤹ�뤿��˻��Ѥ���ޤ��� |
-wsdllocation |
catalog |
��������ƥ��ƥ����Ȥ��褹�뤿��Υ����?�ե��������ꤷ�ޤ���TR9401��XCatalog��OASIS XML Catalog �γƷ��������ݡ��Ȥ���Ƥ��ޤ�������ˡ�Ant xmlcatalog �����פ�Ȥäƥ���ƥ��ƥ����褹�뤳�Ȥ�Ǥ��ޤ���wsimport_catalog ����ץ�Ȥ��Ƥ��������� |
-catalog |
package �������åȥѥå���������ꤷ�ޤ� -p |
\f2binding °���ϡ� \f2Path-like Structures
(http://ant.apache.org/manual/using.html#path) �Ǥ��ꡢ���줾������Ҥˤʤä� \f2<binding> ���Ǥ�Ȥä����ꤹ�뤳�Ȥ�Ǥ��ޤ������Υ���������Ѥ���ˤϡ����� \f2<taskdef> ���Ǥ�ץ?�����Ȥ��ɲä��Ƥ���ɬ�פ�����ޤ���
\f3 .fl <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport"> .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 <wsimport .fl destdir="${build.classes.home}" .fl debug="true" .fl wsdl="AddNumbers.wsdl" .fl binding="custom.xml"/> .fl
�����Ǥϡ�\f2AddNumbers.wsdl �Υ��饤�����¦�����ƥ��ե����Ȥ���������\f2custom.xml �������ޥ����ե�����˴�Ť��� \f2${build.classes.home} �ǥ��쥯�ȥ���� \f2.class �ե�������Ǽ���Ƥ��ޤ������Ѥ���륯�饹�ѥ��� \f2xyz.jar �Ǥ��ꡢ�ǥХå�������ξ��֤ǥ���ѥ��뤬�¹Ԥ���ޤ���
\f3 .fl <wsimport .fl keep="true" .fl sourcedestdir="${source.dir}" .fl destdir="${build.classes.home}" .fl wsdl="AddNumbers.wsdl"> .fl <binding dir="${basedir}/etc" includes="custom.xml"/> .fl </wsimport> .fl
�����Ǥϡ�\f2AddNumbers.wsdl �Υݡ����֥륢���ƥ��ե����Ȥ���������\f2${source.dir} �ǥ��쥯�ȥ���� \f2.java �ե�������Ǽ����\f2${build.classes.home} �ǥ��쥯�ȥ���� \f2.class �ե�������Ǽ���Ƥ��ޤ���
�ѹ��ޤ��Ϻ��줿 wsimport �� Ant °���γ���
\f3base �� \f3destdir ���֤��������ޤ���
\f3sourceBase �� \f3sourcedestdir ���֤��������ޤ���
\f3wsdlFile �� \f3wsdl ���֤��������ޤ���
\f3httpProxy ������ޤ���������ˡ�Ant �� setproxy ��������Ȥäƥץ?��������ԤäƤ���������
\f3version ������ޤ���