public class MathUtils { public int add(int a, int b) { return a + b; } } public class Client { public static void main(String[] args) { try { MathUtilsService service = new MathUtilsServiceLocator(); MathUtilsPortType port = service.getMathUtilsPort(); int result = port.add(10, 20); System.out.println("Result: " + result); } catch (Exception e) { e.printStackTrace(); } } } service-config.xml client-config.xml


上一篇:
下一篇:
切换中文