WSO2 ESB迭代DSS响应(json数组)

WSO2 ESB迭代DSS响应(json数组),json,wso2,wso2esb,wso2dss,Json,Wso2,Wso2esb,Wso2dss,我在重复dss的呼叫响应时遇到了一个问题。我有两台服务器 WSO2 ESB服务器(4.9.0) 安装了数据服务(4.3.4)功能的WSO2应用服务器(5.3.0) 我做一个有效载荷 <payloadFactory media-type="xml"> <format> <p:valoresReport xmlns:p="ReportsDataService"> <xs:uuid xmlns:xs="ReportsDa

我在重复dss的呼叫响应时遇到了一个问题。我有两台服务器

WSO2 ESB服务器(4.9.0) 安装了数据服务(4.3.4)功能的WSO2应用服务器(5.3.0)

我做一个有效载荷

  <payloadFactory media-type="xml">
    <format>
      <p:valoresReport xmlns:p="ReportsDataService">
        <xs:uuid xmlns:xs="ReportsDataService">$1</xs:uuid>
      </p:valoresReport>
    </format>
    <args>
      <arg value="123456789"/>
    </args>
  </payloadFactory>
但是当我尝试迭代行时,我不知道如何做(这种方法不起作用)


...
我也尝试过,但没有成功(没有更改消息类型):


进行集成和迭代的正确形式是什么

我让您了解我的dss和序列:

ReportsDataService.dbs:[]


GenerarReporteSequence.xml:[]

尝试在迭代器中介中使用适当的名称空间,如下示例

     <iterate xmlns:ns1="ReportsDataService" id="MyIterator" expression="//ns1:ReportRowSet/ns1:reportRow" sequential="true">
        <target>
           <sequence>
              <log level="custom">
                 <property name="col" expression="//ns1:column1"/>
              </log>
              <call>
                 <endpoint>
                    <http uri-template="http://endpoint.url"/>
                 </endpoint>
              </call>
           </sequence>
        </target>
     </iterate>

<ReportRowSet xmlns="ReportsDataService">
   <reportRow>
      <column1>1</column1>
      <column2>2</column2>
      <column3>3</column3>
   </reportRow>
   <reportRow>
      <column1>columna 1</column1>
      <column2>olumna 2</column2>
      <column3>columna 3</column3>
   </reportRow>
</ReportRowSet>
  <property name="messageType" scope="axis2" type="STRING" value="application/json"/>
  <property expression="json-eval($.ReportRowSet.reportRow)" name="rows"
    scope="default" type="STRING"/>
  <log level="custom">
    <property expression="$ctx:rows" name="ROWS"/>
  </log>
[2016-05-31 16:21:38,489]  INFO - LogMediator ROWS = [{"column1":1,"column3":3,"column2":2},{"column1":"columna 1","column3":"columna 3","column2":"olumna 2"}]
 <iterate continueParent="true" expression="$ctx:rows"
    id="MyIterator" sequential="true">
    <target>
      <sequence>
      ...
  <iterate continueParent="true" expression="//ReportRowSet/reportRow"
    id="MyIterator" sequential="true">
     <iterate xmlns:ns1="ReportsDataService" id="MyIterator" expression="//ns1:ReportRowSet/ns1:reportRow" sequential="true">
        <target>
           <sequence>
              <log level="custom">
                 <property name="col" expression="//ns1:column1"/>
              </log>
              <call>
                 <endpoint>
                    <http uri-template="http://endpoint.url"/>
                 </endpoint>
              </call>
           </sequence>
        </target>
     </iterate>