Test the mediation flow
Test your mediation flow.
Before you begin
About this task
- In the Servers view, right click the server you will be deploying to, and select Properties. Select WebSphere® Application Server. Check the value of the HTTP port. If the port is different from 9080 you have to make sure that the Stock Quote application looks for the web service on the correct port. This will affect the imports. To change the port:

- Open the Assembly Diagram of the Stock Quote module.
- Select the DelayedService import and in the Properties view, click Binding.
- The Address text box will contain something similar to http://localhost:9080/StockQuoteProviderWeb/sca/DelayedServicePortTypeExport1.
- "Overwrite "9080" with the value of the HTTP port displayed from the Server Properties.
- Follow the previous steps for the RealtimeService import and then save your module.
- To add the StockQuoteApp project and the StockQuoteProviderApp project to the server,
right-click the server, select Add and remove project, and then click
Add All. Click Finish and wait for the server to
finish publishing.

- Open the Assembly Diagram of the StockQuote mediation module. Then right-click the StockQuote_MediationFlow component and select Test Component. The Events page of the integrated test client opens.
- In the Events page, you can select the modules, components, interfaces
and operations that you want to test. For this sample, ensure the
Detailed Properties are:
- Configuration: Default Module Test
- Module: StockQuote
- Component: StockQuote_MediationFlow
- Interface: StockQuoteService
- Operation: getQuote
- In the Initial request parameters table, you enter information
by double clicking the cell in the value column. Double-click the
value cell in the symbol row and enter
AAA. In the same manner, enterCustomerAfor the customerID.
- Next, select the Continue button
to invoke the getQuote operation. The Deployment Location
window opens. - Select a server and click Finish. Enter
the user ID and password for your server. The default is admin/admin.
You will see the resulting values for qualityOfService and value in the return parameters.
- If the application does not run successfully, try the following actions:
- If you see a service runtime exception, check that the web service application is started. In the Servers view, select the server, right click and select Run Administration Console and log in. In the list of running applications under Applications > Enterprise Applications, check the status of the SQSample application and start the application if necessary.
- If you see an error indicating that the module StockQuote cannot be found, make sure the StockQuoteApp application and StockQuoteProviderApp application are running, by following the previous instructions.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15