Hi,
Some work around would be needed to solve this issue internally.
Instead of directly posting to TN gateway service create a custom flow service and give the service URL to the trading partner if they are not properly encoding the XML.
So the cusotm service receives XML document as (Node object) and parse the XMl document using xmlNodeToDocument and DocumentToXMLString (set encode parameter=true)which will treat Special characters (&,<,> and encode as (&,<>)… which gives encoded xmldata and finally route xmldata to TN (via routeXML or tn.receive) service.
This makes the control and handled in wmside and not the trading partner that can smoothly process the transactions.
#webMethods#Integration-Server-and-ESB#B2B-Integration