[Prévia] [Próxima] [Prévia por assunto] [Próxima por assunto]
[Índice cronológico] [Índice de assunto]

Re: [reverbel-sod] Empacotamento do Web Service



Olá Rafael!

Nós não vamos usar o wstools nesse EP:

http://www.ime.usp.br/~reverbel/SOD/trabalhos/fachada-ws/node6.html

O jaxrpc-mapping.xml é gerado pelo wscompile, mas o webservices.xml
deve ser escrito "na mão" (pegue um exemplo e altere, acho que é mais
fácil).

[]'s

On 6/8/06, Rafael Cosentino <rcosen@xxxxxxxxx> wrote:
Ola Ivan,

estou tentando gerar o webservices.xml e o jaxrpc-mapping.xml atraves do
configuration.xml:

<configuration xmlns="http://www.jboss.org/jbossws-tools ">
   <java-wsdl>
       <service name="RentalServiceRPC"
                style="rpc"
                endpoint="videorentalstore.webservice.gen.RentalServiceRPC
"/>

       <namespaces targetNamespace="http://www.ime.usp.br/SOD06";
                   type-namespace=" http://www.ime.usp.br/SOD06"/>

       <mapping file="jaxrpc-mapping.xml"/>

       <webservices servlet-link="RentalServiceRPC"/>

   </java-wsdl>
</configuration>


executo o wstools assim: $ jboss/bin/wstools.sh -cp .../META-INF/classes/videorentalstore/webservice/gen/RentalServiceRPC.class -config configuration.xml

a saída é essa:
=========================================================================

 WSTools Environment

 JBOSS_HOME: /tmp/jboss

 JAVA: /global/jdk1.5.0_01/bin/java

 JAVA_OPTS:

=========================================================================

log4j:WARN No appenders could be found for logger (
org.jboss.ws.tools.WSTools).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.jboss.ws.WSException: Endpoint
videorentalstore.webservice.gen.RentalServiceRPC cannot be loaded
       at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration
(ToolsHelper.java:113)        at org.jboss.ws.tools.WSTools.process(
WSTools.java:129)
       at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
       at org.jboss.ws.tools.WSTools.main(WSTools.java:61)

flw,
Cosen