Running Multiple WebService requests sample

After you have imported and deployed the sample, you can run it by using the instructions later in this section, see Running the sample.

This topic also includes an example input test message and a corresponding output message, so that you can confirm that the sample has worked.

If you encounter any problems when you run the sample, see Resolving problems when running samples in the WebSphere Message Broker documentation.

Input test message

The test message that is used to run this sample is based on the following format:

<ConvertToMiles>
<Yards>1000</Yards>
</ConvertToMiles>

Running the sample

This sample uses the MultipleWSRequests message flow. To send the HTTP requests you can use the following steps, or download and use any freeware HTTP client, for example, "Net Tool".

To run the sample:

  1. Deploy the httpheadernodesample.bar BAR file. This BAR file is deployed automatically by the sample wizard if you select the "Import and deploy" option for the sample.
  2. Expand the folders under the HTTPHeader Node Message Flows project.
  3. Double-click MultipleWSRequests.mbtest to open the Test Client.
  4. Click Invoke Message Flow.
  5. Click Send Message in the Detailed Properties panel to put the request message onto the TEST.IN queue. The message is processed by the message flow and the HTTPReply is displayed.
  6. Compare the HTTPReply with the expected output message shown later in this section.

The sample is complete if all the previous steps were successful. Look at the Java code in the MultipleWSRequests message flow to see how this sample works.

Expected output message

The following message is the expected output message:

<Miles>0.5681818179647999</Miles>

Back to Running the HTTPHeader node sample

Back to sample home