I am newbie to the IBM WMB. And I am trying to implement the 'Mapping node' in the message flow which I have created. The expected output is not obtained, I would request the forum to put some light on this topic.
I will explain my requirement,
1. I have a MQ to get the input from user which is an user defined XML file
2. Then the input XML is fed into the 'Mapping node', I do the mapping which is a straight forward mapping.
3. Resultant XML is directed to the output queue.
MQ Input --> Mapping --> MQ Output
User defined XML:
<?xml version="1.0" encoding="UTF-8"?><ns5:Generic xmlns:ns5="http://www.xxx.com/ofs/Generic" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xxx.com/ofs/Generic foo.xsd "><field0>INPUTT</field0><field1>100001</field1><field2>1001</field2><field3>USD</field3><field4></field4><field5></field5><field6></field6><field7></field7><field8></field8><field9></field9></ns5:Generic>
<?xml version="1.0" encoding="UTF-8"?><out3:ACCOUNTTESTRequest xmlns:out3="http://www.xxx.com/xx/ofs/Request" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:out2="http://www.xxx.com/xx/ofs/RequestCommon" xmlns:out="http://www.xxx.com/xxofs/ACCOUNTTESTType">
Actual Output out of Mapping node:
I tried to create a map using the XSD I have used to create the mapping node, this time when I provide the XML as input to the map, the performed as expected.
This output is expected from Mapping node.
Please provide your valuable comments on this.