package calculator; import calculator.ws.*; public class CalcClient { public static void main(String [] args) throws Exception { // Make a service calculator.ws.CalculatorService service = new calculator.ws.CalculatorServiceLocator(); // Use the service to get a stub to the service calculator.ws.Calculator calc = service.getcalculator(); // test add System.out.println("1 + 2 = " + calc.add(1, 2)); // test subtract System.out.println("5 - 1 = " + calc.subtract(5, 2)); } }