简体   繁体   English

WSO2数据映射器介体

[英]WSO2 Data Mapper Mediator

Is it possible to use the mapping technique with the dynamic input/output?. 动态输入/输出是否可以使用映射技术? Because WSO2 documentation shows only the input/output from the file system. 因为WSO2文档仅显示文件系统的输入/输出。

Basically I would like to map output of one webserive as input of the other webservice 基本上,我想将一个webserive的输出映射为另一个webservice的输入

As long as you know the schema of the output and the expected schema for the input, this can be done. 只要您知道输出的模式和输入的预期模式,就可以完成此操作。 [1] provides a sample where an output from a web service is written to a csv file using the data mapper. [1]提供了一个示例,其中使用数据映射器将Web服务的输出写入csv文件。 In a similar manner if the schema is known of the input and the output your requirement can be achieved. 以类似的方式,如果知道输入和输出的模式,则可以实现您的要求。

[1] http://chathurikaerandi.blogspot.com/2016/07/mapping-to-csv-and-writing-output-to.html [1] http://chathurikaerandi.blogspot.com/2016/07/mapping-to-csv-and-writing-output-to.html

Thanks Erandi 谢谢埃兰迪

This can be solved by writing the custom sequence and use as a mediator in the WSO2 ESB service creation. 这可以通过编写自定义序列并在WSO2 ESB服务创建中用作中介程序来解决。 No straight forward way yet 尚无直截了当的方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM