For the first item, since you are continating multiple items, maybe use pub.report:runStringTemplateOnPipe, then use a template to pull out the values as needed. You can also do formatting on them, so if address1 isn’t populated, you can ignore that line. At least take a look…
For the new question, I don’t completely understand the problem, so I’ll just guess
I am guessing that you have gotten as far as creating the document, setting it as publishable, and publishing the document locally. You also need to create a trigger so the IS knows what to do with published documents. You set the document and the service to execute in this trigger. Put a savePipeline on the service being executed by the trigger so you know you have received it. The document is received as a document named “folder.folder.folder:Document”, so watch for that.
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods