Raj,
You’ve got the big picture.
You use routeXML instead of wm.tn:receive in order to bypass authentication checks. This assumes you are controlling access at the gateway service or earlier.
When you define the TN document type, there are two sets of XML queries you will create:
The first set on the identify tab identify the document.
The second set on the extract tab identify which XML elements to extract the sender, receiver, and document id attributes that drive the selection of a TN processing rule.
The service that your processing rule invokes can convert the document to a canonical and publish it to the Broker. You will get more value from TN if you make frequent use of the wm.tn:log and wm.tn.doc:changeStatus services through conversion to canonical format and publication to the Broker. This will make it easier to track the processing history for the document and re-submit if an error occurs.
Regards
#Integration-Server-and-ESB#webMethods#B2B-Integration