I developed a report which will take a sample message and incoming XML file as an input that simulates the new message.
Source Code Extract:
Now let me depict the usage.
Sample Message Id:
Note the message id in the snap shot below which will be used later for simulating message.
Sample Payload Content:
Find the payload content of the sample message id that is shown above.
Payload Content that has to be simulated:
Now I want to simulate the sample message using the payload content as shown below.
Using the Report: Now we will execute the report using sample message id and sample payload content file that has to be simulated.
Output of the Report:
After executing the report we notice that new message id is simulated as highlighted in the figure below.
Now let's check out the incoming payload content by double clicking the message content.We can clearly notice that the incoming paylaod is swapped with the content of our new XML file.
So we can easily modify and simulate messages from XI irrespective of any adapter using this sample report. We can also easily develop an editor like WE19 which takes source XML in the text editor and simulate messages or enhance it to generate n number of messages for stress/load testing. Crack the source code and build what ever you want!!!