标签:指定 image public cxf auto oid client main 添加





package com.example.tuo.myCXFWebService.WS_Client;
import com.example.tuo.webservice.HelloWorld;
import com.example.tuo.webservice.HelloWorldService;
public class Client {
public static void main(String[] args) {
// TODO Auto-generated method stub
HelloWorld helloWorldClient = new HelloWorldService().getHelloWorldPort();
String result = helloWorldClient.sayHello("Tony");
System.out.println(result);
}
}
运行程序,会在控制台看到调用webService的sayHello的输出: Hello world,Tony

WebService -- Java 实现之 CXF ( 使用CXF工具生成client 程序)
标签:指定 image public cxf auto oid client main 添加
原文地址:http://www.cnblogs.com/atuotuo/p/6231236.html