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?