I solved the problem.
There is a bug with the convertToString in wmFlatFile package.
Genarally when you are referencing a delimited dictionary definition you will select the delimited radio button in the schema and when you had a fixed width dictionary you naturally select a fixed width radio button and give the fixed width record length.
But,this service is always calling the delimiter parser no matter whatever you select. This delimited parser is unable to parse the fixed length dictinary definition and unable to find the boundaries of that record.
So always select the delimiter radio button what ever format you may generate. Just make sure your dictionary definition is correct(fixed width/delimited).
So this way it worked for me by selecting the delimiter radio button in schema and… the dictionary is still the same as i intended(fixed width format).
Hope this solution helps you too!!
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services