Trading Networks 10.7 | Administering and Monitoring B2B Transactions | webMethods Module for EDI | Forming EDI Documents to Send Outbound When Using Trading Networks | Delivering the Outbound EDI Document | Routing the Outbound EDI Document to Trading Networks | Adding Logic to the Service that Forms the EDI Document that Routes through Trading Networks
 
Adding Logic to the Service that Forms the EDI Document that Routes through Trading Networks
To route a document through Trading Networks, in the service that you created to form the EDI document, invoke the wm.tn.route:routeBizdoc service.
The following code sample shows a portion of the service to form EDI documents that is described in Creating the Service to Form the EDI Document, with additional flow operations added to invoke:
* The wm.b2b.editn:trackEDIdocs service to do FA reconciliation.
*A service that you define to create a BizDocEnvelope for the outbound EDI document (the sample invokes the createEDIBizDoc service). For more information about how to create this service, see Creating a BizDocEnvelope for the Outbound EDI Document.
*The wm.tn.route:routeBizdoc service to send the BizDocEnvelope to the Trading Networks processing rules.