0

我正在尝试使用迭代器从销售人员中提取数据,最后使用聚合器整合数据。

<property name="Result" scope="default">
            <Result xmlns=""/>
        </property>
        <iterate xmlns:sfdc="http://wso2.org/salesforce/adaptor" continueParent="true" expression="//sfdc:iterator" id="SFDCData" sequential="true">
            <target>
                <sequence>
                    <salesforce.queryMore configKey="MySFConfig">
                        <batchSize>200</batchSize>
                    </salesforce.queryMore>
                    <payloadFactory media-type="xml">
                        <format>
                            <result xmlns="">$1
                            </result>
                        </format>
                        <args>
                            <arg evaluator="xml" expression="$body/*"/>
                        </args>
                    </payloadFactory>
                </sequence>
            </target>
        </iterate>
        <aggregate>
            <correlateOn expression="SFDCData"/>
            <completeCondition>
                <messageCount max="-1" min="-1"/>
            </completeCondition>
            <onComplete enclosingElementProperty="Result" expression="//result">
                <respond/>
            </onComplete>
        </aggregate>

当我尝试使用邮递员调用服务时,它显示超时错误。“无法得到任何回应”。

我所需要的只是整合来自 Iterator 的数据并将项目返回给最终用户。如果您对此有任何线索或想法,请发表评论。

4

1 回答 1

0

Can you provide Sample Request XML? From your code i can analyse that in the XML there are multiple occurrences of element "sfdc:iterator" and this you are passing in iterator which means that if there are 5 elements then the message will be split into 5 and then sent to salesforce.But may i know the reason of using payload mediator? Is it possible to remove the payload mediator and execute the request. Upon that as you have made this sequential so it's good practice to log so that you can analyse where the fault is happening

于 2018-03-28T04:50:43.967 回答