【发布时间】:2016-11-01 10:31:17
【问题描述】:
我正在使用 Zuora 肥皂 API。我正在尝试执行查询。我没有收到任何错误,但是当我将有效负载输出到日志时,结果始终为空。我究竟做错了什么? (我在下面提供的查询应该返回 320 条记录,这是我在本地非 mule 测试脚本中执行相同查询时得到的)
这是流程的一部分。
- 我将 zoql 查询设置为 flowVars (flowVars.query)。例如:
select id from Account WHERE updatedDate > '2016-06-24T23:00:00-06:00' - 我使用dataweave创建xml有效载荷(dw在下面提供)
- 我执行查询(下面提供了 Web 服务使用者应用程序 xml 详细信息)
DataWeave 设置有效载荷:
%dw 1.0
%output application/xml
%namespace ns0 http://api.zuora.com/
---
{
ns0#query: {
ns0#queryString: flowVars.query
}
}
Web 服务消费者应用程序 xml
<ws:consumer config-ref="ZuoraWebServiceConsumer" operation="query" doc:name="query_zuora"/>
ZuoraWebServiceConsumer 配置详情:
<ws:consumer-config name="ZuoraWebServiceConsumer" wsdlLocation="zuora.a.49.0-sandbox.wsdl" service="ZuoraService" port="Soap" serviceAddress="https://apisandbox-api.zuora.com" doc:name="Web Service Consumer">
<ws:security>
<ws:wss-username-token username="myusername.here" password="mypassword.here" passwordType="TEXT" />
</ws:security>
</ws:consumer-config>
还有 WSDL: https://www.dropbox.com/s/fkrppvv7i5s1a4w/zuora.a.49.0-sandbox.wsdl?dl=0
【问题讨论】:
-
能否请您也添加您的 mule 日志?您收到任何错误消息吗?
标签: web-services soap wsdl mule dataweave