< Previous | Next >

Assemble the mediation module

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

To build the StockQuote mediation module assembly diagram, as shown in the following diagram, complete the following steps:
Screenshot of the assembled StockQuote mediation module
  1. In the Business Integration view, expand the StockQuote module.
  2. To open the Assembly Editor, double-click picture of module assembly iconAssembly Diagram. The assembly editor opens showing mediation flow component named StockQuote.
  3. In the Resources library's Interfaces category, select StockQuoteService and drag it on to the assembly editor canvas.
    Add StockQuoteService Interface
  4. In the Component Creation dialog that pops up, choose to create an Export with no Binding.
    Select Export with no Binding
  5. Click StockQuoteServiceExport1 in the Assembly Editor to highlight its name. Type StockQuoteService to rename the export. Notice that the name change is reflected in the Description tab in the export icon's Properties view.
  6. Right-click StockQuoteService and choose Generate Binding... > Web Service Binding.
    Generate Web Service Binding for Export
    You are generating a binding of type web service, using soap/jms as the transport protocol.
  7. Select SOAP1.1/JMS as the transport, and click OK.
    Select the soap/jms transport
    Look under the resource library's Web Service Ports category for the generated wsdl port, StockQuoteService_StockQuoteServiceJms Port.
  8. In the Resources library's Interfaces category select DelayedServicePortType and drag it onto the Assembly Editor canvas. In the Component Creation dialog choose to create an Import with Web Service Binding and click OK.
  9. In the details dialog that pops up, keep the default setting to use an existing web service port. Click Browse.
    Web service import details
  10. In the selection wizard, click DelayedServiceSOAP. Click OK.
  11. In the transport selection window, keep the default transport, SOAP 1.1/HTTP and click Finish.
  12. Click OK in the details dialog.
  13. Select the import and rename it to DelayedService. Click the Binding tab in the Properties view to see the binding information.
  14. Drag RealtimeServicePortType onto the Assembly Editor canvas, and create an Import with Web Service Binding.
  15. Specify RealtimeServiceSOAP as the port, and keep the default transport protocol.
  16. Rename the import to RealtimeService.
    Assembly Diagram with Export and Import services
  17. Click StockQuote, the mediation flow component that was created with the mediation module. Rename it to StockQuote_MediationFlow.
  18. Hover your mouse over StockQuoteService. An orange handle appears. This is the wire's source node.
  19. Drag the wire to the target node, StockQuote_MediationFlow, and release.
  20. Click OK on the Add Wire dialog. The source node's interface, StockQuoteService, is added to the target and the wire is created.
  21. 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.
  22. 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.
    Screenshot of the assembled StockQuote mediation module
  23. Generate the implementation for StockQuote_MediationFlow. In the assembly editor, select the component, 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.
  24. Click the StockQuote - Assembly Diagram tab to switch back to the assembly editor.
  25. Since the initial mediation component was created without references or an interface attached to it, they have to be synchronized. To do this, right click StockQuote_MediationFlow, select Synchronize Interfaces and References... > to Implementation. Click Yes.
  26. Save the assembly diagram. Expand the StockQuote assembly under the module in the Business Integration view to see the artifacts created.
    Screenshot of the Business Integration view with created artifacts





Feedback



This information center is powered by Eclipse technology. (http://www.eclipse.org)

< Previous | Next >