Working with Apache CXF

Apache CXF is an Open Source service development framework that makes it easy to create, set up, deploy, and use Web services across multiple transports, protocols, and data formats. With system integrations becoming increasingly diverse and complex, this framework provides a means for developers to launch and maintain new Web services in an SOA environment.

This course is designed to provide you with proficiency in building both SOAP and REST style Web services with CXF through hands-on lab experience. It covers the basic architecture, design approaches, and implementation mechanics required to establish integrated web services.


Two days (14 hours)

Target Audience

Java application programmers.


Java proficiency, basic Maven skills, intermediate Spring skills.

Course Objectives

After completing this class, you will be able to:

  • Match the CXF architectural elements with a description of their function.
  • Match specific web service technologies with their associated purpose within the CXF framework.
  • Create a Web service using either of two development methods.
  • Develop a SOAP-based Web service using either of two front ends.
  • Implement a CXF provider or a dispatch messaging service.
  • Implement a solution using either the Document or RPC SOAP communication style and specify when you would use the WS-Addressing or Callback integration pattern.
  • Apply different data binding alternatives.
  • Apply and integrate XSD and XML to specifying service contracts and structure schemas.
  • Deploy CXF clients and providers to JVM, Tomcat, and EJB containers.
  • Apply basic CXF interceptors or a custom interceptor to CXF endpoints.
  • Implement both CXF client and CXF server components for both REST and SOAP.
  • Create a service implementation from a WSDL file.
  • Invoke a web service using either a Java client or JavaScript.
  • Configure transport-level security.

Course Agenda

  • Web Services Background
  • REST Web Services in CXF
  • SOAP Web Services in Apache CXF
  • WSDL Service Definitions for SOAP
  • CXF Architecture and Features
  • Web Service Security
  • WS-* SOAP Extensions