Getting ready
Before we build our first integration, let's get acquainted with the APIs we are going to use in this first service. As shown in the preceding diagram our inbound call is a SOAP request and therefore we need a WSDL definition which defines the inbound API. Our outbound call is a REST request to a service we host on apiary (https://apiary.io) and uses the API Blueprint standard (https://apiblueprint.org) to define the REST API.
Let's start with the inbound or source definition as shown in the following screenshot. The WSDL has one operation which uses an input, output, and a fault message:
The messages reference an XSD which defines the structure for our input, output, and fault message is as follows:
The WSDL is available in the downloads as ICSBook-Ch2-FlightAirlines-Source.WSDL
.
As you can see the WSDL contains one synchronous operation called AllAirlines
, which uses elements from the embedded XML schema for the input, output, and fault message. In Chapter 1,Introducing the...