Trading Networks 10.7 | Administering and Monitoring B2B Transactions | webMethods Module for EDI | Creating Clients that Send EDI Documents to Trading Networks | Using a Service to Send Multiple EDI Documents to Trading Networks
 
Using a Service to Send Multiple EDI Documents to Trading Networks
If you create a client that obtains multiple EDI documents (for example, reading them from file) and you want to loop and send each EDI document to Trading Networks in one invocation of your client, you must be careful to cleanup the pipeline between sending each document. Use either the wm.tn:receive service or wm.tn.doc.xml:routeXml service to send the document. Then, after each invocation of either of these services, drop the editn_env parameter from the pipeline.