Problema com web services

2 respostas
joaosavio

Erro:

com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class org.me.calculator.jaxws.Mult is not found. Have you run APT to generate them?
        at com.sun.xml.internal.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:256)
        at com.sun.xml.internal.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:567)
        at com.sun.xml.internal.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:514)
        at com.sun.xml.internal.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:341)
        at com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:227)
        at com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:588)
        at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:291)
        at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:274)
        at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:267)
        at javax.xml.ws.Service.getPort(Service.java:92)
        at org.me.calculator.CalculatorWSService.getCalculatorWSPort(CalculatorWSService.java:56)
        at calculatorws_client_application.Main.main(Main.java:19)

Client:

public class Main {

    public static void main(String[] args) {
        try { // Call Web Service Operation
            CalculatorWSService service = new CalculatorWSService();
            CalculatorWS port = service.getCalculatorWSPort();

            int i = -900000;
            int j = 7;
            
            int result = port.add(i, j);
            System.out.println("Result = " + result);

            double result2 = port.mult(5, 6);
            System.out.println("Result2 = " + result2);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}

Alguem tem alguma ideia?

Abraços
joão Sávio
www.joaosavio.com

2 Respostas

spranta

Olá João, estou com o mesmo problema que vocês, conseguiu resolver?

joaosavio

Sei la, acho q refiz hahahaha

tenta implantar o projeto

abs

Criado 17 de abril de 2009
Ultima resposta 5 de ago. de 2009
Respostas 2
Participantes 2