Hello - WM/TN 4.6 stops the document unless the sender ID matches the B2B username. However, the one B2B marketsite can send XML documents behalf of multiple customers. So I’ve had to write a custom receive service.
This is what we have implemented:
- Receive the document
- Call wm.tn.doc:recognize
- Call wm.tn.doc:getSenderReceiver
- Call wm.tn.profile:getExternalID (this returns the DUNS number of the document sender)
- Get the B2B username doing the actual posting.
- Check if this B2B username is allowed to post for this document sender DUNS number. (permitted B2B username stored as an extended attribute in the document sender’s profile)
- Call wm.tn.route:routeBizdoc
- Set HTTP response code appropriately. (optional)
By ensuring the sender is a specific party, the security aspect of WM receive is maintained. This is important - if sidestepped, someone may post a document with arbitrary details. For eg: some authorised user can post an invoice from my company to a third company saying “Pay $1000000 to Panama Bank A/c #2134134”. This document would match a TN processing rule that sends invoices out (using our digital certificate!) rather than processing the document inwards.
I hope to submit an article soon to WMusers with more detail about this.
Hope this helps.
Sonam
#edi#Integration-Server-and-ESB#webMethods