Running the Single WebService in MQ flow 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 section also includes an example input test message and a corresponding expected 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:

<ConvertTemp>
<Temp>5</Temp>
<FromUnit>Celsius</FromUnit>
<ToUnit>Fahrenheit</ToUnit>
</ConvertTemp>

Running the sample

This sample uses the SingleWebServiceinMQFlow message flow. The flow uses one input queue called TEST.IN and one output queue called TEST.OUT. These queues are automatically created, under the default queue manager, by the sample wizard when you deploy the sample.

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 SingleWSRequest.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 output message is read from the TEST.OUT queue and displayed.
  6. Compare this output message with the expected output message shown later in this section.

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

Expected output message

The following message is the expected output message:

<ConvertTempResult>41.0</ConvertTempResult>

Back to Running the HTTPHeader node sample

Back to sample home