首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

CXF 配备备忘

2012-12-24 
CXF 配置备忘服务端配置:web.xmlIHelloWorld.javahttp://127.0.0.1:8088/CXFSpring/HelloWorld?wsdl客户端

CXF 配置备忘
服务端配置:
web.xml




IHelloWorld.java




http://127.0.0.1:8088/CXFSpring/HelloWorld?wsdl



客户端配置:

application-webservice.xml
package client;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;import test.IHelloWorld;public class Client {public static void main(String[] args) {ApplicationContext context = new ClassPathXmlApplicationContext("ApplicationContext.xml");IHelloWorld helloWorld = (IHelloWorld) context.getBean("helloWorldClient");System.out.println(helloWorld.sayHello("Test"));}}

热点排行