Apache CXF Web Service Development
|Also available on:|
- Design and develop web services using contract-first and code-first approaches
- Publish web services using various CXF frontends such as JAX-WS and Simple frontend
- Invoke services by configuring CXF transports
- Create custom interceptors by implementing advanced features such as CXF Interceptors, CXF Invokers, and CXF Features
- The first practical guide on Apache CXF with real-world examples
Table of Contents
Chapter 1: Getting Familiar with CXF
Chapter 2: Developing a Web Service with CXF
Chapter 3: Working with CXF Frontends
Chapter 4: Learning about Service Transports
Chapter 5: Implementing Advanced Features
Chapter 6: Developing RESTful Services with CXF
Chapter 7: Deploying RESTful Services with CXF
Chapter 8: Working with CXF Tools
Appendix A: Getting Ready with Code Examples
Appendix B: Getting Started with Spring
The book covers both web service and restful service in CXF, and also explain's CXF's frontend, transport, interceptors, invoke etc, which are the essential concepts of CXF's architecture. So it definitely seems interesting to me.
Download the code and support files for this book.
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
Errata- 9 submitted: last submission 02 Apr 2013
Errata type: Grammar | Page number: 3
"By the end of this chapter the reader would be able utilize various CXF features for developing RESTful services and how to leverage Spring configuration for deploying RESTful service in the tomcat container." Should be "By the end of this chapter the reader would be able to utilize various CXF features for developing RESTful services and how to leverage Spring configuration for deploying RESTful service in the tomcat container."
Errata type: Grammar | Page number: 49
"Again the contract definitions can be made consistent with respect to data types so that it can be easily converted in Java objects without any portability issue." should be "Again the contract definitions can be made consistent with respect to data types so that it can be easily converted into Java objects without any portability issue.
Errata type: Grammar | Page number: 49 "The WSDL portion following shows the sample transport details:" Should be "The following WSDL portion shows the sample transport details:"
Errata type: Others | Page number: 51
"Web service development using the contract-first development approach" Should be "Web service development using the Contract-first development approach"
Errata type: Code | Page number: 59
System.out.println(«Starting Server»); should be System.out.println("Starting Server");
Errata type: Others | Page number: 59
String address = «http://localhost:8080/OrderProcess»; Should be String address = "http://localhost:8080/OrderProcess";
Errata type: Others | Page number: 106
"HTTP conduits are channels allow us to apply certain HTTP related properties or attributes which can affect the way messages are exchanged between endpoints." Should be "HTTP conduits are channels that allow us to apply certain HTTP related properties or attributes which can affect the way messages are exchanged between endpoints."
Errata type: Typo | Page number: 107
"for eample XML or JSON format, before sending the response over HTTP. CXF handles this mapping transparently behind the scenes by providing data binding components." Should be "for example XML or JSON format, before sending the response over HTTP.CXF handles this mapping transparently behind the scenes by providing data binding components."
Errata type: Code | Page number : 27
String processOrder(OrderprocessOrder(Order order); Should be: String processOrder( Order order );
What you will learn from this book
- Become familiar with the different features of Apache CXF architecture and set up the CXF environment
- Develop a simple web service using CXF-based Spring configuration
- Build a web service using contract-first and code-first approaches in simple frontend APIs such as JAX-WS
- Create dynamic web service clients by using various CXF frontend APIs
- Develop web services with different transports by configuring various CXF transports such as HTTP, HTTP(S), JMS, and CXF Local
- Create RESTful services that support JSON and XML as the message formats
- Develop services with features such as Interceptors by implementing advanced CXF features
- Attain configuration and dependency management by integrating web services with the de facto Spring framework
- Unit test POJO services in a stand-alone environment as well as promote applications to the Tomcat container for production ready deployments
- Speed-start developing web services by using CXF tools effectively
- Basics of Spring framework and IOC container for readers who are not acquainted with Spring framework
Apache CXF framework helps you to develop a standards-based programming model and also provides a flexible deployment model for deploying web services. Developing SOAP and RESTful applications can be made easy by using Apache CXF framework. However, getting started with developing web services using the Apache CXF framework is not easy.
This is the first book that gives details on how to use the Apache CXF framework for developing SOAP and REST web services. It is a hands-on practical guide that simplifies working with CXF framework as it covers all major aspects with real-world examples. The chapters cover the various CXF features in detail and each has systematic steps with practical, simple examples to implement these features on your web services.
The book introduces the Apache CXF framework and its features such as Frontend API, Data Bindings, Transports, Spring-based configuration, and CXF tools. It also has chapters on SOAP and RESTful services. It will help you create RESTful services that support XML as well as the widely accepted Java Script Object Notation (JSON) format. It explains the components of CXF architecture that help developers customize the Apache CXF framework to suit the target application. The book covers both code-first and contract-first approaches for service deployment. You will see how to develop services in a flexible deployment model offered by CXF, unit test them in a stand-alone environment, and finally promote them in an application server environment.
The instructions in this book will help developers to build their application according their requirements by using any of the frontends supported by Apache CXF framework. The various CXF frontend APIs covered in this book provide a wide variety of options in developing and deploying your application.
The book introduces some advanced concepts such as Interceptors and features that will add extra capability to your service component. It will help you take advantage of different transport features offered by the CXF runtime such as HTTP, HTTP(S), and JMS protocols.
A practical hands-on guide to show you how to develop and deploy SOAP and RESTful services using Apache CXF framework
This book provides a quick start in developing web services using the open source Apache CXF framework. Each chapter uses illustrations from an Order Processing Application and all the code examples are built using the ANT tool. These practical, simple, and easy-to-work-with illustrations are accompanied by step-by-step instructions.
As a developer you can take advantage of these practical scenarios to understand the CXF framework and also make use of them in real-life applications. After reading this book, you will be able to develop and deploy services using the CXF framework.
Who this book is for
This book is for developers who want to design and develop SOAP and RESTful services using Apache CXF framework and leverage various CXF features for service development. It is ideal for developers who have some experience in Java application development as well as some basic knowledge of web services, but it covers some of the basic fundamentals of web services and REST to get you acquainted with these technologies before using these concepts to develop services using the CXF framework.