Be careful about equating the number of steps to processing efficiency.
Invoke vs. transformer
Efficiency of transformers
I vaguely recall a thread about traversing an IData document (visiting every field all the way down the structure) and performing an action, such as trim. I can’t seem to find it now but maybe my mentioning it will trigger someone’s memory. If not, you should be able to create a Java service that will traverse an arbitrary IData object using recursion. You’ll want to make sure you call trim only on nodes that are strings.
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services