Calculator.jws
public class Calculator {
public int somar(int numA, int numB)
{
return numA + numB;
}
public int subtrair(int numA, int numB)
{
return numA - numB;
}
public int multiplicar(int numA, int numB)
{
return numA * numB;
}
public int dividir(int numA, int numB)
{
if(numB != 0)
return numA / numB;
return 0;
}
}
When I go into:
http://localhost:808...ulator.jws?wsdl
the following error appears:
Sorry, something seems to have gone wrong... here are the details: Fault - ; nested exception is: java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar')
And in: http://localhost:808.../Calculator.jws
the following error:
This XML file does not appear to have any style information associated with it. The document tree is shown below. <faultstring> The service cannot be found for the endpoint reference (EPR) /axis2/Calculator.jws </faultstring>
Why ?


Sign In
Create Account


Back to top









