Create the StockQuoteService interface. This is the interface that you can use to connect to your web client to the mediation module.
The StockQuoteService interface will have a getQuote operation. The data that is sent and received by the getQuote operation will be contained in business objects. We will create the interface and business objects in the resources library, so that they can be used by other modules in the future.
The getQuote operation will be used to send the request for a stock quote. The operation will send the request data as a business object named StockQuoteRequest that contains the fields symbol and customerID. The operation will receive the response data as business object named StockQuoteResponse that contains the fields value and qualityOfService.
Follow these instructions to first create the business objects, and then the service interface: