WSO2 EI:在wso2 EI中的数据库中插入数组xml

时间:2018-12-04 22:35:46

标签: wso2 wso2esb wso2ei

我正在研究一个用例,其中输入文件为json格式,输出为xml。这种转换效果很好。

现在需要将输出xml添加到数据库中。下面是我的xml消息

    <Date>2018-06-01</Date>
<Parent>
<name>XXX</name>
<Owner>
<name>XXXXYYY</name>
<services>
<service>
<ProductName>dummyxx</ProductName>
<abc>
<Begin>0</Begin>
<End>10</End>   
</abc>              
<cde>
<Begin>0</Begin>
<End>10</End>
</cde>
</service>
<service>
<ProductName>dummyyy</ProductName>
<abc>
<Begin>10</Begin>
<End>100</End>
</abc>              
<cde>
<Begin>10000</Begin>
<End>100000</End>
</cde>
</service>
</services>
</Owner>
</Parent>

有人可以帮助我如何在数据库中添加此xml。我尝试使用数据服务以及通过数据库报表,但是无法在数据库中添加服务数组。 基本上,应该在数据库中添加两行,每行具有相同的日期,父名称,所有者名称。

谢谢。

0 个答案:

没有答案