ramesh,
Not meaning to belittle you but it appears from all of your post that you are processing EDI documents incorrectly. In the other post you mention parsing the EDI document to get the delimiters.
If you sent the document to TN as an edi document all this information you is returned in the TNparms idata object to your service.
What version of IS/TN are you running?
Have your looked at the wmEDIsamples package?
It appears that you are missing some key functionality that will simplify what you are trying to accomplish.
#webMethods#Integration-Server-and-ESB#edi