InfoQ

News

The Apache Incubator CXF team announced the availability of the 2.0.4 release

Posted by Jean-Jacques Dubray on Jan 30, 2008 06:07 AM

Community
SOA
Topics
WS Standards,
XML Databinding,
Web Services,
SOA Platforms
Tags
XFire,
REST,
WS-Star,
Apache CXF

The Apache Incubator CXF team announced the availability of the 2.0.4 release. This is a patch release for the 2.0.3 version (over 50 JIRA items resolved). Dan Kulp from IONA has headed most of this release.

CXF is a fully featured Open Source Web Services Framework which supports:

  • Different bindings, including SOAP, REST, and CORBA.
  • WS-*, including WS-Addressing, WS-Security, WS-ReliableMessaging, and WS-Policy
  • RESTful Web Services
  • Multiple transports (HTTP, JMS, JBI)
  • Pluggable Data-bindings
  • Contract first development with WSDL and code first development starting from Java.

The key design considerations include:

  • Clean separation of front ends, like JAX-WS, from the core code.
  • Simplicity, with, for instance, the creation of clients and endpoints without annotations.
  • High Performance
  • Embeddable

Dan Diephouse explains:

CXF is the newer shinier version of XFire; it is version 2.0. CXF is the combination of the Celtix and XFire communities coming together at Apache.

When Tim O' Brien asked why someone would use XFire over Axis2, Dan replied:

My personal view is that in CXF there is a big focus on, as Paul [Brown] calls it, developer ergonomics. The API is pretty friendly. You can reconfigure CXF easily without mucking with XML. [CXF has much deeper Spring integration including support for Spring 2.0 XML syntax.] The APIs and Spring configuration mirror each other quite nicely, making it easier for individuals to understand. We’re also Java 5 based, which can make for a much friendlier experience.

For instance, CXF provides several ways to invoke services dynamically at runtime without generating a client from the WSDL. When you have a WSDL which defines a single operation "echo" which takes an input of a string and outputs a String. You could use the DynamicClientFactory for it like this:

DynamicClientFactory dcf = DynamicClientFactory.newInstance();
Client client = dcf.createClient(
"echo.wsdl");
Object
[] res = client.invoke("echo", "test echo");
System
.out.println("Echo response: " + res[0]);

Atif Khan who built a POX (Plain Old XML) service sample using JAX-WS Provider model and configuring it using Spring agrees:

[CXF] is very intuitive, simple to use and functional.

Glen Mazza published another sample using CXF that is getting PDFs from the National Weather Service using FOP.

InfoQ also asked Paul Brown'opinion who is using CXF with some customers:

CXF is an industrial strength Web Services framework. IONA has invested extensively in this project by providing a team of developers based in China. Overall CXF, as well as other frameworks such as Axis, have done a good job at driving down the transaction time to the bare minimum of overhead over the level of marshaling. 

People who tend to like CXF are building their own systems. CXF does a good job at packaging an embeddable web service component that can be added to Spring for instance. Axis provides more an end-to-end architecture.

No comments

Reply

Exclusive Content

Intentional Software - Democratizing Software Creation

Business users doing programming? Simonyi and Kolk presents how Intentional Software offers a radical new software approach that separates business knowledge from software engineering knowledge.

Getting Started with Grails

Jason Rudolph discusses Java/Grails integration, Grails plugins, creating a Grails sample application, Grails app structure, data querying and persistence, validation, controllers and tag libraries.

Creating Product Owner Success

The Scrum Product Owner role is powerful, valuable and challenging to implement. It brings healthier relationships between customers and developers, and competitive advantage - if you do it right.

Book Excerpt and Interview: Effective Java, Second Edition

Effective Java, Second Edition by Joshua Bloch is an updated version of the classic first edition, which won a 2001 Jolt Award. InfoQ asked Bloch questions about the areas that the new edition covers.

Tapestry for Nonbelievers

A new article by I. Drobiazko and R. Zubairov introduces v. 5 of the Apache Tapestry component-oriented web framework. The tutorial shows how to create a component and covers IoC in Tapestry and Ajax.

Pete Lacey on REST and Web Services

In this interview, Burton Group consultant Pete Lacey talks to Stefan Tilkov about his disillusionment with SOAP, his opinion on REST, and addresses some of the perceived shortcomings REST vs. WS-*.

Business Natural Languages Development in Ruby

Jay Fields presents his concept of Business Natural Languages - a type of Domain Specific Languages geared towards being readable by domain experts.

Distributed Version Control Systems: A Not-So-Quick Guide Through

Adoption and interest for Distributed Version Control Systems is constantly rising. We will introduce the concept of DVCS and have a look at 3 actors in the area: git, Mercurial and Bazaar.