Hi Anand,
1. Use the swift data protocol to parse your data.
2.Genericxml parsers to parse the elements inside the block- use substring() to split the string
or replaceAll('M','0')
3.Request data manager to copy the pieces of vse request
in response match the incomming request with block of data and send response with
<block1>
<applicationId>F</applicationId>
<serviceId>01</serviceId>
<logicalTerminal>{{=request_logicalTerminal01}}0{{=request_logicalTerminal02}}</logicalTerminal>
<sessionNumber>0001</sessionNumber>
<sequenceNumber>000001</sequenceNumber>
</block1>