`
tianshibaijia
  • 浏览: 1128636 次
文章分类
社区版块
存档分类
最新评论

Apache CXF暴露服务-学习笔记

 
阅读更多

CXF 暴露WebService的思路,以在Jetty为Web Container为例来描述。

Demo 代码




步骤:
1. ServerFactoryBean创建server,这个不是运行的server,可以成Server端Service






2.Server启动

3.SoapBindingFactory加入Listener



4. AbstractBindingFactory 为Destination设置observer





5.JettyHTTPDestination设置observer



6.JettyHTTPDestination,激活绑定的内容,调用web enginge发布服务,



7.JettyHTTPServerEngine将endpoint绑定到具体web container(这里是jetty),新建一个web 应用


访问http://localhost:9000/Hello?wsdl可以看到效果,服务已经发布.


参考:
http://cxf.apache.org/docs/simple-frontend.html

分享到:
评论

相关推荐

    apache-cxf-2.7.18-src.zip 源码

    apache-cxf-2.7.18-src.zip

    cxf-rt-frontend-simple-3.0.1-API文档-中文版.zip

    Maven坐标:org.apache.cxf:cxf-rt-frontend-simple:3.0.1; 标签:cxf、rt、apache、simple、frontend、jar包、java、API文档、中文版; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览...

    cxf-rt-transports-http-3.0.1-API文档-中文版.zip

    Maven坐标:org.apache.cxf:cxf-rt-transports-http:3.0.1; 标签:cxf、transports、rt、apache、http、jar包、java、API文档、中文版; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览...

    cxf-rt-bindings-soap-3.0.1-API文档-中文版.zip

    Maven坐标:org.apache.cxf:cxf-rt-bindings-soap:3.0.1; 标签:cxf、rt、apache、bindings、jar包、java、API文档、中文版; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。...

    apache-cxf-2.3.5-src.zip

    apache-cxf-2.3.5(2)-src.zipapache-cxf-2.3.5(2)-src.zip

    apache-cxf-3.0.16-jar.zip

    3.0.16版本所需jar包! 测试代码: public static void main(String[] args) throws Exception { JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance(); //第三方系统的webservice ...

    apache-cxf-3.5.0.zip

    Apache CXF 是一个开放源代码框架,提供了用于方便地构建和开发 Web 服务的可靠基础架构。

    apache-cxf-3.1.16-src

    apache-cxf-3.1.16-src 官方资源包,用于各位关于CXF使用时候的配置

    cxf-rt-frontend-jaxws-3.0.1-API文档-中文版.zip

    Maven坐标:org.apache.cxf:cxf-rt-frontend-jaxws:3.0.1; 标签:cxf、rt、apache、frontend、jaxws、jar包、java、API文档、中文版; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览...

    cxf-core-3.0.1-API文档-中文版.zip

    Maven坐标:org.apache.cxf:cxf-core:3.0.1; 标签:cxf、core、apache、jar包、java、API文档、中文版; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中...

    apache-cxf-2.4.3-src.zip

    apache-cxf-2.4.3-src.zip apache-cxf-2.4.3-src.zip

    cxf-rt-frontend-jaxrs-3.0.1-API文档-中文版.zip

    Maven坐标:org.apache.cxf:cxf-rt-frontend-jaxrs:3.0.1; 标签:cxf、jaxrs、rt、apache、frontend、jar包、java、API文档、中文版; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览...

    cxf-rt-rs-client-3.0.1-API文档-中文版.zip

    Maven坐标:org.apache.cxf:cxf-rt-rs-client:3.0.1; 标签:cxf、rt、apache、client、jar包、java、API文档、中文版; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性...

    apache-cxf-3.0.6-src.tar

    apache-cxf-3.0.6-src.tar

    apache-cxf-3.1.6-src源码

    apache-cxf-3.1.6源码 在开发工具中查看源码时直接选择apache-cxf-3.1.6-src.zip压缩文件即可 不用解压

    apache-cxf-3.1.8-src.zip 源码

    apache-cxf-3.1.8-src.zip 源码

    cxf-rt-ws-addr-3.0.1-API文档-中文版.zip

    Maven坐标:org.apache.cxf:cxf-rt-ws-addr:3.0.1; 标签:cxf、rt、apache、addr、jar包、java、API文档、中文版; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化...

    cxf-rt-bindings-xml-3.0.1-API文档-中文版.zip

    Maven坐标:org.apache.cxf:cxf-rt-bindings-xml:3.0.1; 标签:cxf、rt、apache、xml、bindings、jar包、java、API文档、中文版; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档...

    cxf-rt-rs-extension-providers-3.0.1-API文档-中文版.zip

    Maven坐标:org.apache.cxf:cxf-rt-rs-extension-providers:3.0.1; 标签:cxf、rt、extension、apache、providers、jar包、java、API文档、中文版; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”...

    apache-cxf-2.7.6.rar

    apache-cxf-2.7.6.rar webservice

Global site tag (gtag.js) - Google Analytics