A part from above,you can put this service logic to send XML data to TN.
pub.xml:xmlStringToXMLNode (WmPublic service)
wm.tn.doc.xml:routeXml (WmTN service) → this will submit xmldata to TN
P.S. Make sure the particular Document Type exist in TN before you sent it for document recognition work.
HTH,
RMg
#Integration-Server-and-ESB#webMethods#B2B-Integration