Error running WebService Java

0

I am trying to execute a Web Service SOAP from the server GlassFish Server 4.1.1 on NetBeans 8.2 . Attempting to run the following error is returned:

Web Service Methods:

@WebService(serviceName = "CalculatorWS")
@Stateless()
public class CalculatorWS {

    @WebMethod(operationName = "hello")
    public String hello(@WebParam(name = "name") String txt) {
        return "Hello " + txt + " !";
    }

    @WebMethod(operationName = "add")
    public int add(@WebParam(name = "i") int i, @WebParam(name = "j") int j) {
        return i + j;
    }
}

I run the Web Service as follows:

However,thefollowingerrorisreturned:

What to eat?

    
asked by anonymous 13.03.2017 / 15:21

1 answer

0

Resolved.

I had to deploy the Web Service. I did this:

I right-clicked on the Project and clicked Deploy, as follows:

    
13.03.2017 / 17:08