srinivas wrote:
“Does the payload exchanged with a Trading Networks have to be a bizdoc?”
No. wm.tn:receive accepts a node object, which is automatically created by IS content handlers when documents of the appropriate type are posted (e.g. an XML doc can be posted directly to wm.tn:receive by any HTTP capable client).
srinivas wrote:
"Does the partner have to always envelope the payload in a bizdoc format for the receiving Trading Networks server to recognize?:
No. Unless they are using IS/TN, they will not able to do so. Plus, a bizdoc object isn’t really suitable for transport. It’s pretty much a construct that is local to IS/TN.
Yemi wrote:
“So you can have your partner call a normal service you expose and inside that service you can call wm.tn.doc:recognize setting up the xmldata or edidata as needed.”
Yes, this is a good practice. It is normally a good idea to not have partners invoke wm.tn services directly. Rather, have them call your gateway service instead. Then just pass the doc to wm.tn:receive–no need to do wm.tn.doc:recognize first unless you have some need to manipulate the bizdoc directly after recognition, which is normally not the case.
#soa#API-Management#webMethods