ppl i create one ws

http://200.168.57.172:8080/AgentePenhora/services/FuncoesInstituicao?wsdl


i run :
D:\Java\bibliotecas\xfire-1.2.2\lib>java -cp xfire-all-1.2.2.jar;ant.jar;commons
-logging-1.0.4.jar;jaxb-xjc-2.0.1.jar;jdom-1.0.jar;wsdl4j-1.5.2.jar;XmlSchema-1.
1.jar;jaxb-impl-2.0.1.jar org.codehaus.xfire.gen.WsGen -wsdl http://200.168.57.1
72:8080/AgentePenhora/services/FuncoesInstituicao?wsdl -o d:\teste -b jaxb

i copy all files create on my d:\teste

and write this:

        try{
            FuncoesInstituicaoClient service = new FuncoesInstituicaoClient();
            FuncoesInstituicaoPortType porta = 
service.getFuncoesInstituicaoPortTypeLocalEndpoint();
            ObjetoCartorio aa = porta.getInformacoesCartorio(1);
            System.out.println("aee");
        }catch(Exception e){
            System.out.println(e.getMessage());
        }

but i got that erro:
4/12/2006 16:49:34 org.codehaus.xfire.transport.local.LocalChannel getService
INFO: Unable to locate 'FuncoesInstituicao' in ServiceRegistry
14/12/2006 16:49:34 org.codehaus.xfire.handler.DefaultFaultHandler invoke
INFO: Fault occurred!
org.codehaus.xfire.fault.XFireFault: Could not find a service to invoke.
        at 
org.codehaus.xfire.handler.LocateBindingHandler.invoke(LocateBindingHandler.java:39)
        at 
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at 
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
        at 
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
        at 
org.codehaus.xfire.transport.local.LocalChannel.sendViaNewChannel(LocalChannel.java:172)
        at 
org.codehaus.xfire.transport.local.LocalChannel.send(LocalChannel.java:99)
        at 
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
        at 
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
        at org.codehaus.xfire.client.Client.invoke(Client.java:335)
        at 
org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
        at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
        at $Proxy12.getInformacoesCartorio(Unknown Source)
        at teste.Main.main(Main.java:35)
14/12/2006 16:49:35 org.codehaus.xfire.handler.DefaultFaultHandler 
sendToDeadLetter
SEVERE: Could not find service.
org.codehaus.xfire.fault.XFireFault: Could not find a service to invoke.
        at 
org.codehaus.xfire.handler.LocateBindingHandler.invoke(LocateBindingHandler.java:39)
        at 
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at 
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
        at 
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
        at 
org.codehaus.xfire.transport.local.LocalChannel.sendViaNewChannel(LocalChannel.java:172)
        at 
org.codehaus.xfire.transport.local.LocalChannel.send(LocalChannel.java:99)
        at 
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
        at 
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
        at org.codehaus.xfire.client.Client.invoke(Client.java:335)
        at 
org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
        at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
        at $Proxy12.getInformacoesCartorio(Unknown Source)
        at teste.Main.main(Main.java:35)
why???


tks
  • [xfire-user] help error: Fabio Alves de Araujo Ebner - DNA Solution

Reply via email to