Assemble the mediation module
Assemble the client and provider services of the StockQuote
sample and wire them to the mediation flow component.
About this task

Procedure
- In the Business Integration view, expand the StockQuote module.
- To open the assembly editor, double-click
Assembly Diagram.
The assembly editor opens showing the StockQuote mediation flow component. - Select the StockQuote mediation flow component and hover
over it. The select Add Interface > StockQuoteService
Interface.

- Right-click the StockQuote mediation flow component, and select Generate Export > Web Service Binding.
- In the Configure Web Service Export wizard, select the SOAP 1.1/JMS option, and then click Finish.
- Right-click StockQuoteServiceExport1, and then select Refactor > Rename. You need to save the StockQuote Assembly diagram. Change the name to StockQuoteService in the Rename Artifact window.
- Locate the generated WSDL port, StockQuoteService_StockQuoteServiceJms Port under the resource library's Web Service Ports category.
- In the Resources library's Interfaces category select DelayedServicePort and drag it onto the assembly editor canvas. In the Configure Web Service Import window, select Import with Web Service Binding and click OK.
- Select the import and use refactoring to rename it to DelayedService. Click the Binding tab in the Properties view to see the binding information.
- Drag the RealtimeServicePort artifact onto the assembly editor canvas, and then select Import with Web Service Binding.
- Select the import and use refactoring to rename the import to RealtimeService.
- Click StockQuote. This is the mediation flow component that was created with the mediation module. Use refactoring to rename it to StockQuote_MediationFlow
- Create a wire from source StockQuote_MediationFlow to target RealtimeService, and click OK. A matching reference, RealtimeServicePortTypePartner, is created on the source and the wire is created.
- Create a wire from source StockQuote_MediationFlow to
target DelayedService, and click OK.
A matching reference, DelayedServicePortTypePartner,
is created on the source and the wire is created.

- Generate the implementation for StockQuote_MediationFlow. In the assembly editor, select the component, and then right-click and select Generate Implementation. Select the StockQuote folder, and click OK. The mediation flow editor opens, showing the source interface and target references.
- Save the assembly diagram. Expand the StockQuote assembly under the module in the Business Integration view to see the artifacts created.

This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15