Introduction
In this article, you will use CXF and Spring to build and develop an order Processing Web service. The WEB service processes or validates orders placed by the customer and returns a unique order ID. After reading this article, you will be able to apply the concepts and features of CXF to build and develop WEB services.
System Requirements
To run the examples in this article, make sure that the following software has been installed and set up on your computer:
Java 5 or later
Tomcat 5 or later
ANT Build Tools
CXF Binary Distribution version 2.1
After you install the above distribution, set the following environment variables:
Java_home (for Java)
Catalina_home (for Tomcat)
Ant_home (for Ant)
Cxf_home (for CXF)
For example, you can set up cxf_home=c:\apache-cxf-2.1 and add the following content to the PATH environment variable:
Java_home\bin
Catalina_home\bin
Ant_home\bin
Why Choose CXF?
The Apache CXF is an open source framework that provides a reliable infrastructure for easy building and development of WEB services. It allows you to create high-performance and scalable services that you can deploy in Tomcat and Spring based lightweight containers, and on more advanced servers, such as Jboss, ibm®websphere®, or BEA WebLogic.
Function
The framework provides the following features:
Web Service Standard Support: CXF supports the following Web service standards:
Java API for XML Web Services (JAX-WS)
Soap
Web Service Description Language (Web Services Description Language, WSDL)
Message transfer optimization mechanism (Messages transmission optimization mechanism,mtom)
Ws-basic profile
Ws-addressing
Ws-policy
Ws-reliablemessaging
Ws-security