Relacione os elementos do arquivo “config.xml” às res...
1. Configuration
2. Service
3. WSDL
4. Modelfile
( ) Este elemento indica que temos um arquivo WSDL e desejamos criar a interface e as classes de argumentos.
( ) Este é o elemento principal dp esquema. Dentro dele podemos ter três tipos de elementos, um de cada vez.
( ) Quando usamos WSDL, o wscompile pode criar um modelo contendo nossas especificações.
( ) Este elemento indica que temos uma interface e uma classe de endpoints e desejamos que o wscompile gere o WSDL e o mapping file.
Assinale a opção que indica a sequência correta, de cima para baixo.
Java(TM) API for XML-based RPC (JAX-RPC) Tools
Configuration File
The wscompile tool reads the configuration file (config.xml), which contains information that describes the web service. The basic structure of config.xml 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> element.
The <service> Element
If you specify this element, wscompile reads the service endpoint interface that describes the service and generates a WSDL file. In the <interface> subelement, the name attribute specifies the service endpoint 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>
The <wsdl> Element
If you specify this element, wscompile reads the service's WSDL file and generates the service endpoint interface. The location attribute specifies the URL of the WSDL file, and the packageName attribute specifies the package of the classes generated by wscompile. For example:
<wsdl
location="http://tempuri.org/sample.wsdl"
packageName="org.tempuri.sample" />
The <modelfile> Element
This element is for advanced users.
If config.xml contains a <service> or <wsdl> element, wscompile generates a model file that contains the internal data structures that describe the service. If you've already generated a model file in this manner, then you can reuse it the next time you run wscompile. For example:
<modelfile location="mymodel.xml.gz"/>
Fonte:https://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.6/jaxrpc/jaxrpc-tools.html
Configuration: Este é o elemento principal do esquema. Dentro dele, podemos ter três tipos de elementos, um de cada vez.
Service: Este elemento indica que temos uma interface e uma classe de endpoints e desejamos que o wscompile gere o WSDL e o mapping file.
WSDL: Este elemento indica que temos um arquivo WSDL e desejamos criar a interface e as classes de argumentos.
Modelfile: Quando usamos WSDL, o wscompile pode criar um modelo contendo nossas especificações.