import Calculator_pkg.*; class CalcClient { static public void main(String args[]){ try { CalculatorServiceLocator locator = new CalculatorServiceLocator(); // The following command changes the location of the service // locator.setCalculatorEndpointAddress("http://localhost:yourport/axis/services/Calculator"); Calculator service = locator.getCalculator(); int result = service.add(2,3); System.out.println("2+3=" + result); } catch (Exception ex) { System.out.println(ex.getMessage()); } } }