一个Webservice的客户端 package example;public class Client { public static void main(String[ ] arg){ try{ HelloWorldServiceLocator hl = new HelloWorldServiceLocator(); HelloWorld_PortType ser = hl.getHelloWorld(); String s = ser.sayHe
package example; public class Client { public static void main(String[ ] arg){ try{ HelloWorldServiceLocator hl = new HelloWorldServiceLocator(); HelloWorld_PortType ser = hl.getHelloWorld(); String s = ser.sayHelloWorldFrom("身披白袍"); System.out.println(s); }catch (Exception e){ e.printStackTrace(); } } } //http://blog.csdn.net/shenpibaipao/article/details/78227505