I have order message like as follows. I want to make multiple messages (two
in this case) according to Items in main order XML. So my output message(s)
will contain order informational and single Item information.
I try it by using map. But the output only one Message with first item
information!
Regards,
<ns0:Main_Order
xmlns:ns0=”http://ABCTrading.Schema.Main_Order_Schema”>
<Items>
<Item>
<Item_Code>10</Item_Code>
<Item_Name>Item_Name_0</Item_Name>
<Item_Qty>100</Item_Qty>
<Item_Unit_Price>10.4</Item_Unit_Price>
</Item>
<Item>
<Item_Code>11</Item_Code>
<Item_Name>Item_Name_2</Item_Name>
<Item_Qty>200</Item_Qty>
<Item_Unit_Price>20.4</Item_Unit_Price>
</Item>
</Items>
<Order_Information>
<Filled_Date>1999-05-31T13:20:00.000-05:00</Filled_Date>
<Ordered_Date>1999-05-31T13:20:00.000-05:00</Ordered_Date>
<Note>Note_0</Note>
</Order_Information>
</ns0:Main_Order>