【问题标题】:mule - web service consumer (soap) always returns nullmule - Web 服务使用者 (soap) 始终返回 null
【发布时间】:2016-11-01 10:31:17
【问题描述】:

我正在使用 Zuora 肥皂 API。我正在尝试执行查询。我没有收到任何错误,但是当我将有效负载输出到日志时,结果始终为空。我究竟做错了什么? (我在下面提供的查询应该返回 320 条记录,这是我在本地非 mule 测试脚本中执行相同查询时得到的)

这是流程的一部分。

  1. 我将 zoql 查询设置为 flowVars (flowVars.query)。例如:select id from Account WHERE updatedDate > '2016-06-24T23:00:00-06:00'
  2. 我使用dataweave创建xml有效载荷(dw在下面提供)
  3. 我执行查询(下面提供了 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


【解决方案1】:

在与 MuleSoft Support 合作后,发现 Zuora 连接器存在错误。当 Zuora 返回一个无效会话错误时,Zuora 连接器没有捕获它,从池中销毁连接,并启动一个新连接。 MuleSoft 已确认该错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-29
    • 1970-01-01
    • 2012-12-28
    • 2018-11-09
    • 1970-01-01
    • 2013-04-08
    相关资源
    最近更新 更多