/**
*
*/
package lee;
import javax.xml.ws.Endpoint;
import org.fkjava.cfx.ws.HelloWorld;
import org.fkjava.cfx.ws.impl.HelloWorldWs;
/**
* @author Kevin
* 发布Web Services
*/
public class ServerMain {
/**
* 发布Web Services
* @param args
*/
public static void main(String[] args) {
// Web Servers的对象
HelloWorld helloWorld = new HelloWorldWs();
// 发布Web Services
// 第一个参数指定Web Services的地址,并指定它的名字
// 第二个参数指定服务的提供者,即Web Servers的对象
Endpoint.publish("http://192.168.1.2/HelloWorld", helloWorld);
System.out.println("HelloWorld Web Serviecs暴露成功!");
}
}
3.利用CFX开发Web Service的服务器端:发布
最新推荐文章于 2018-10-26 10:35:53 发布