当前位置: 首页 > 工具软件 > Apache CXF > 使用案例 >

Apache CXF 介绍

贺立果
2023-12-01
Apache CXF 介绍
 
Apache CXF 是一个开源的项目,前身是XFire与Celtix结合的产物,它是一个高性能的WebService,同时还支持多种绑定。
 
CXF比较适合创建各种不同传输协议的服务。一般的服务总线是以集成各种服务为目的,CXF相反,它是以提供各种服务为目的的。
 
与Apache Axis2相比,CXF全都是有优点了。这里就不说了,很多这类对比的文章。
 
CXF所支持的主要功能如下:
支持多种绑定方式:SOAP、REST、Corba
支持的Web服务包括:WS-Addressing、WS-Security、WS-ReliableMessaging和WS-Policy
支持多种传输协议
可插拔式的数据绑定
前端核心程序的清晰分离
高性能
 
CXF的架构体系主要包括下面部分:
CXF总线
消息和拦截器
前端,通过JAX-WS创建服务,可以从不同的源头(Java类、WSDL1.1/2.0)来创建服务
传输层
服务模型(在CXF内代表服务)
绑定
 
有关更详细的介绍可以参看CXF的官方主页 http://cxf.apache.org/
 
 
---------------------------------------------------
来自官方的介绍:

General

  • High Performance
  • Extensible
  • Intuitive & Easy to Use

Support for Standards

  • JAX-WS, JAX-WSA, JSR-181, and SAAJ
  • SOAP 1.1, 1.2, WS-I BasicProfile, WS-Security, WS-Addressing, WS-RM and WS-Policy
  • WSDL 1.1 and 2.0
  • MTOM

Multiple Transports, Bindings, Data Bindings, and Formats

  • Bindings: SOAP, REST/HTTP
  • Data bindings: JAXB 2.0, Aegis, XMLBeans. (Castor and JiBX will be supported in a later version of CXF)
  • Formats: XML, JSON
  • Transports: HTTP, Servlet, JMS, and Jabber transports
  • Extensibility API allows additional bindings for CXF, enabling additional message format support such as CSV and fixed record length

Flexible Deployment

  • Lightweight containers: deploy services in Tomcat or Spring-based containers
  • JBI integration: deploy as a service engine in a JBI container such as ServiceMix, OpenESB or Petals
  • SCA integration: deploy in an SCA container such as Tuscany
  • J2EE integration: deploy services in J2EE application servers such as Geronimo, JOnAS, JBoss, WebLogic, and WebSphere
  • Standalone Java client/server

Support for Multiple Programming Languages

  • Full support for JAX-WS 2.0 client/server programming model
  • JAX-WS 2.0 synchronous, asynchronous and one-way API's
  • JAX-WS 2.0 Dynamic Invocation Interface (DII) API
  • Support for wrapped and non-wrapped styles
  • XML messaging API
  • Support for JavaScript and ECMAScript 4 XML (E4X) - both client and server
  • Support for CORBA with Yoko
  • Support for SCA withTuscany
  • Support for JBI with ServiceMix

Code Generation

  • Java to WSDL
  • WSDL to Java
  • XSD to WSDL
  • WSDL to XML
  • WSDL to SOAP
  • WSDL to service
 

本文转自 leizhimin 51CTO博客,原文链接:http://blog.51cto.com/lavasoft/165928,如需转载请自行联系原作者
 类似资料: