您好我正在使用WSO2 ESB我创建了一个名为" query"它的工作从salesforce获取数据并插入到mssql数据库表中,但我想在正确的响应区域中显示该响应
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="query"
startOnLoad="true"
statistics="disable"
trace="disable"
transports="http,https">
<target>
<inSequence>
<salesforce.init>
<username>$USER$</username>
<password>$PASSWORD$$TOKEN$</password>
<loginUrl>https://login.salesforce.com/services/Soap/u/27.0</loginUrl>
</salesforce.init>
<salesforce.queryAll>
<batchSize>200</batchSize>
<queryString>select Id,name,Account.name,AssistantName,AssistantPhone,Birthdate,CreatedBy.name,Department,Description,Email,HomePhone,LastModifiedBy.Name,MobilePhone,Title from Contact</queryString>
</salesforce.queryAll>
<sequence key="generatebatch"/>
<iterate xmlns:sfdc="http://wso2.org/salesforce/adaptor"
expression="//sfdc:iterator">
<target>
<sequence>
<salesforce.queryMore>
<batchSize>200</batchSize>
</salesforce.queryMore>
<sequence key="generatebatch"/>
</sequence>
</target>
</iterate>
<respond/>
<payloadFactory media-type="json">
<format>$1</format>
<args>
<arg evaluator="json" expression="$.response"/>
</args>
</payloadFactory>
</inSequence>
<outSequence/>
</target>
<description/>
</proxy>
答案 0 :(得分:0)
您可以尝试将调用DSS替换为有效负载示例以进行调试。
在您的情况下 - 您会迭代并向终端发送消息,但在迭代后不要进行聚合调解。