Java Tutorial/Web Services SOA/Tools

Материал из Java эксперт
Перейти к: навигация, поиск

The syntax to use the wsgen tool

The wsgen tool generates the run time classes used in the Java API for XML-Based Web Services (JAX-WS) Web services.

wsgen [options] <SEI>

OptionDescriptionclasspath <path>Specifies where to find input class files.-d <directory>Specifies where to store the generated run time classes.-helpDisplays help messages.-r <directory>Specifies where to place generated resource files, such as Web Services Definition Language (WSDL) files.-servicename <name>Generates the specified wsdl: service in the WSDL.-versionPrints version information for the wsgen tool.


The wsimport Tool

The wsimport tool generates client-side run time classes from the WSDL document of a Web service.

Client applications use the run time classes to communicate with the Web service.

The syntax to use the wsimport tool is:



   <source lang="java">

wsimport [options] <wsdl></source>



OptionDescription-d <directory>Specifies the directory to generate output files.-catalogSpecifies catalog files.-pSpecifies a target package.-helpDisplays a help message.