Topic
1 reply Latest Post - ‏2013-10-07T03:35:11Z by fjb_saper
SathishKumarSubramanian
1 Post
ACCEPTED ANSWER

Pinned topic Creating Message Flow using Mapping Node - Facing problem

‏2013-09-11T12:49:36Z |

Hi

 

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.

 

My flow,

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>

Expected XML:

<?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">
  <out3:RequestCommon>
    <UserName>INPUTT</UserName>
  </out3:RequestCommon>
  <out3:ACCOUNTTEST>
    <CUSTOMER>100001</CUSTOMER>
    <CATEGORY>1001</CATEGORY>
    <CURRENCY>USD</CURRENCY>
  </out3:ACCOUNTTEST>
</out3:ACCOUNTTESTRequest>

Actual Output out of Mapping node:

<ACCOUNTTESTRequest xmlns="http://www.xxx.com/xx/ofs/Request"/>

P.S.:

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.