Running the .NETCompute Node sample

If you encounter any problems when you run the sample, see Resolving problems when running samples in the IBM Integration Bus documentation.

Running the sample

To run the sample, testing the top branch of the flow:

  1. In the Application Development view, expand the Application called DotNetApplication, and open the Flow Test called DotNetApplication_LoyaltyProgram.mbtest.
  2. Click Send Message. A message is sent to the DOTNET.IN queue.
  3. The flow processes the message and an output message is placed on the DOTNET.OUT queue.
  4. The editor displays the received message. Compare the received message with the expected LoyaltyProgram output message.

To run the sample, testing the bottom branch of the flow:

  1. In the Application Development view, expand the Application called DotNetApplication, and open the Flow Test called DotNetApplication_SaleEnvelope.mbtest
  2. Click Send Message. A message is sent to the DOTNET.IN queue.
  3. The flow processes the message and an output message is placed on the DOTNET.OUT queue.
  4. The editor displays the received message. Compare the received message with the expected SaleEnvelope output message.

Expected LoyaltyProgram output message

The output message for the sample when testing the top branch of the message flow with the LoyaltyProgram message, should have the following format:

<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
<LoyaltyProgram
      xmlns:applicant="http://www.example.org/applicant"
      xmlns:store="http://www.example.org/store">
  <applicant:ApplicantDetails>
    <applicant:FirstName>Ben</applicant:FirstName>
    <applicant:LastName>Thompson</applicant:LastName>
    <applicant:HouseNo>1</applicant:HouseNo>
    <applicant:Street>Happiness Avenue</applicant:Street>
    <applicant:Town>Grumpyville</applicant:Town>
  </applicant:ApplicantDetails>
  <store:StoreDetails>
    <store:StoreID>001</store:StoreID>
    <store:StoreName>Broker Brothers Central</store:StoreName>
    <store:StoreStreet>Exuberant Avenue</store:StoreStreet>
    <store:StoreTown>Happyville</store:StoreTown>
  </store:StoreDetails>
</LoyaltyProgram>

Expected SaleEnvelope output message

When you test the bottom branch of the message flow with the SaleEnvelope message, the output message should have the following format:

00,01,02,Twister,Games,0.30,01<CRLF>
02,03,01,The Times Newspaper,Books and Media,0.20,01<CRLF>
04,05,01,The Origin of Species,Books and Media,22.34,02<CRLF>
06,07,01,Microscope,Miscellaneous,36.20,01

<CRLF> represents the characters with ASCII hex code points x'0D' and x'0A'.

Back to sample home