In this chapter, we will cover the following recipes:
In this chapter, we will explore Camel's capabilities for interacting with SOAP web services, which are commonly used in integration technology. Camel strongly supports the Apache CXF project (http://cxf.apache.org/) as a web services framework. As such it is very easy to use CXF to create Camel routes that can both call external web services and act as web service listeners. This chapter's recipes will show you some of the common scenarios for web service integration with Camel that will provide a starting point for your continued exploration of these capabilities.
The CXF library supports both SOAP through the Java API for XML Web Services (JAX-WS), and REST through the Java API for RESTful Web Services (JAX-RS). This chapter will focus on SOAP web services based on service contracts defined using the Web Service Definition Language (WSDL).
CXF is a very rich library with extensive support for the WS-* set of standards. For details on how to make use of these, you should refer to the CXF website.
There are generally two approaches for building SOAP web services:
This chapter will focus on contract-first web service development.
A number of Camel architectural concepts are used throughout this chapter. There is a broader overview of Camel concepts in the Preface. Full details can be found at the Apache Camel website at http://camel.apache.org.
The code for this chapter is contained within the camel-cookbook-web-services
module of the examples.
18.116.62.168