有人知道如何在 Talend ESB 路由中将 xml 转换为 json 和 json 到 xml 吗?当我在 Job 中收到 rest 消息时,我可以配置“consume”和“produce”,但是如何在 Route 中执行此操作。我需要对休息消息做一些调解,所以我必须使用路由(基于内容的路由),因为 EIP 在路由中。
例子:
RestEndpoint_IN->MessageRouter->ConvertXmlToJson->RestEndpoint_Out.
作为回应,我需要:
RestEndpoint_Out->ConvertJsonToXml->RestEndpoint_IN