If you encounter any problems when you run the sample, see Resolving problems when running samples in the IBM Integration Bus documentation.
To run the sample, testing the top branch of the flow:
To run the sample, testing the bottom branch of the flow:
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>
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'.