Hi Shreedar,
From this below sentence i can under stand that you are add the unwanted tag like messages and message 1 in the xml please remove those from the input file and do a end to end test.
And other interesting thing is when I tested the xml file including the extra tags in message mapping, it created target messages and mapping is perfect. But, When I'm passing same xml in real time, it is throwing error.
for example if you paste the same thing in mapping it will work , but u cannot process the same thing for end to end test it will fail.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:MaterialRequest xmlns:ns1="urn:*****.com:pi:A_TEST_SUK:SOAP">
<MaterialCode>12</MaterialCode>
<Language>121</Language>
</ns1:MaterialRequest>
</ns0:Message1>
<ns0:Message2>
<ns1:MaterialResponse xmlns:ns1="urn:*****.com:pi:A_TEST_SUK:SOAP">
<MaterialCode>212</MaterialCode>
<MaterialDescription>212</MaterialDescription>
</ns1:MaterialResponse>
</ns0:Message2>
</ns0:Messages>
Just remove the bold info and try to trigger the message it will work.
This is what you have to trigger from file adapter.
<?xml version="1.0" encoding="UTF-8"?>
<MT_HOT_SHEET_SENDER>
.
.
.
</MT_HOT_SHEET_SENDER>
Thanks & Regards
Uday S