To submit a document to Trading Networks document recognition, in the service that you created to form the EDI document, invoke the wm.tn.doc.xml:routeXml 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 an additional INVOKE flow operation added to invoke the wm.tn.doc.xml:routeXml service.