Module for EDI 9.12 | Understanding EDI Concepts | Forming EDI Documents and Sending Them Outbound | Delivering the EDI Document Directly from the Service that Forms It
 
Delivering the EDI Document Directly from the Service that Forms It
The following diagram illustrates the process of receiving an internal-format document and using a processing rule to invoke a service that you create to:
*Form the outbound EDI document based on the internal-format document
*Deliver the outbound EDI document
Step
Description
1
A back-end system or client sends an internal-format document to the webMethods Integration Server, invoking the wm.tn:receive service to send the document to Trading Networks.
2
Trading Networks matches the internal-format document to its TN document types. You need to create a TN document type that will match your internal-format. For more information about creating TN document types, see the webMethods Trading Networks Administrator’s Guide for your release.
After selecting the appropriate TN document type, Trading Networks forms the BizDocEnvelope that contains the internal-format document as the content and places the BizDocEnvelope in the pipeline in the bizdoc variable.
3
Trading Networks searches its processing rules to find the appropriate rule to use to process the internal-format document. You should create a processing rule that uses the Execute a Service processing action to invoke a service that you create to form the EDI document. For more information about creating this service, see Creating a Service for Forming an Outbound EDI Document.
4
The service you create to form the EDI document executes. After forming the EDI document, your service invokes logic that you create to deliver the outbound EDI document.
For more information about how to create the service to form an outbound EDI document and send the outbound EDI document directly from the service, see webMethods Module for EDI Installation and User’s Guide.