InnerhalbNach weiteren Dokumenten suchenSupport-Ressourcen |
wscompile(1M)NAME | SYNOPSIS | DESCRIPTION | OPTIONS | SUPPORTED FEATURES | CONFIGURATION FILE | SERVICE ELEMENT | WSDL ELEMENT | MODELFILE ELEMENT | EXAMPLES | SEE ALSO NAME
SYNOPSIS
DESCRIPTIONGenerates the client stubs and server-side ties for the service definition interface that represents the web service interface. Additionally, it generates the WSDL description of the web service interface which is then used to generate the implementation artifacts. In addition to supporting the generation of stubs, ties, server configuration, and WSDL documents from a set of RMI interfaces, wscompile also supports generating stubs, ties and remote interfaces from a WSDL document. You must specifiy one of the -gen options in order to use wscompile as a stand alone generator. You must use either -import (for WSDL) or -define (for an RMI interface) along with the -model option in order to use wscompile in conjunction with wsdeploy. Invoking the wscompile command without specifying any arguments outputs the usage information. OPTIONS
Exactly one of the -input, -define, -gen options must be specified. SUPPORTED FEATURES
The --f option requires a comma-separated list of features. The following are the supported features. Note: the -gen options are not compatible with wsdeploy. CONFIGURATION FILEThe wscompile command reads the configuration file config.xml which contains information that describes the web service. The structure of the file is as follows: <?xml version=”1.0” encoding=”UTF-8”?> <configuration xmlns=”http://java.sun.com/xml/ns/jax-rpc/ri/config”> <service> or <wsdl> or <modelfile> </configuration> The configuration element may contain exactly one <service>, <wsdl> or <modelfile>. SERVICE ELEMENTIf the <service> element is specified, wscompile reads the RMI interface that describes the service and generates a WSDL file. In the <interface> subelement, the name attribute specifies the service's RMI interface, and the servantName attribute specifies the class that implements the interface. For example: <service name="CollectionIF_Service" targetNamespace="http://echoservice.org/wsdl" typeNamespace="http://echoservice.org/types" packageName="stub_tie_generator_test"> <interface name="stub_tie_generator_test.CollectionIF" servantName="stub_tie_generator_test.CollectionImpl"/> </service> WSDL ELEMENTIf the <wsdl> element is specified, wscompile reads the WSDL file and generates the service's RMI interface. The location attribute specifies the URL of the WSDL file, and the packageName attribute specifies the package of the classes to be generated. For example: <wsdl location="http://tempuri.org/sample.wsdl" packageName="org.tempuri.sample"/> MODELFILE ELEMENTThis element is for advanced users. If config.xml contains a <service> or <wsdl> element, wscompile can generate a model file that contains the internal data structures that describe the service. If a model file is already generated, it can be reused next time while using wscompile. For example: <modelfile location="mymodel.xml.gz"/> EXAMPLESExample 1 Using wscompile to generate client-side artifacts
Where a client side artifact is generated in the outputdir for running the service as defined in the config.xml file. Example 2 Using wscompile to generate server-side artifacts
Where a server side artifact is generated in the outputdir and the modelfile in modelfile.Z for services defined in the config.xml file. SEE ALSOJ2EE SDK 1.4 Last Revised July 2005NAME | SYNOPSIS | DESCRIPTION | OPTIONS | SUPPORTED FEATURES | CONFIGURATION FILE | SERVICE ELEMENT | WSDL ELEMENT | MODELFILE ELEMENT | EXAMPLES | SEE ALSO |
||