After you have imported and deployed the sample, you can run it by following the instructions in the Running the sample section.
This topic 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 IBM Integration Bus documentation.
The test message that is used to run this sample is based on the following format:
<isPrime><input>5</input></isPrime>
This sample uses the message flow ADD_DELETE_MQMD_MQHeaderNode. The sample uses two queues, STOREMQ.OUT and RESULT.OUT, which are automatically created under the default queue manager by the sample wizard when you deploy the sample.
To send the HTTP requests you can use the following steps, or you can download and use any freeware HTTP client, for example, "Net Tool".
To run the sample:
The sample is complete if all the previous steps are successful. Look at the Java code in the ADD_DELETE_MQMD_MQHeaderNode message flow to see how this sample works.
The following message is the expected output message:
<result>5 is a prime number.</result>