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:
- In the Business Integration view, expand the StockQuote module.
- To open the Assembly Editor, double-click
Assembly Diagram. The assembly editor opens showing mediation flow component
named StockQuote.
- In the Resources library's Interfaces category, select StockQuoteService and drag it on to the assembly editor canvas.
- In the Component Creation dialog that
pops up, choose to create an Export with no Binding.
- 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.
- Right-click StockQuoteService and
choose Generate Binding... > Web Service Binding. You are generating a binding of type web service, using soap/jms
as the transport protocol.
- Select SOAP1.1/JMS as the transport,
and click OK. Look under the
resource library's Web Service Ports category
for the generated wsdl port, StockQuoteService_StockQuoteServiceJms
Port.
- 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.
- In the details dialog that pops up, keep the default
setting to use an existing web service port. Click Browse.
- In the selection wizard, click DelayedServiceSOAP. Click OK.
- In the transport selection window, keep the default transport,
SOAP 1.1/HTTP and click Finish.
- Click OK in the details dialog.
- Select the import and rename it to DelayedService. Click the Binding tab in the Properties view to see
the binding information.
- Drag RealtimeServicePortType onto
the Assembly Editor canvas, and create an Import with Web
Service Binding.
- Specify RealtimeServiceSOAP as the
port, and keep the default transport protocol.
- Rename the import to RealtimeService.
- Click StockQuote, the mediation
flow component that was created with the mediation module. Rename
it to StockQuote_MediationFlow.
- Hover your mouse over StockQuoteService. An orange handle
appears. This is the wire's source node.
- Drag the wire to the target node, StockQuote_MediationFlow, and release.
- Click OK on the Add Wire dialog. The source node's interface, StockQuoteService, is added
to the target and the wire is created.
- 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, 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.
- Click the StockQuote - Assembly Diagram tab to switch back to the assembly editor.
- 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.
- Save the assembly diagram. Expand the
StockQuote assembly under the module in the Business Integration view
to see the artifacts created.