ule子-Web服务使用者(肥皂)始终返回null [英] mule - web service consumer (soap) always returns null

查看:89
本文介绍了ule子-Web服务使用者(肥皂)始终返回null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am using the Zuora soap API. I am attempting to perform a query. I don't get any errors but the results are always null when I output the payload to log. What am I doing wrong? (the query I provide below should return 320 records, which is what I get if I execute the same query in a local non-mule test script)

这是流程的一部分.

  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

推荐答案

使用MuleSoft支持人员后,发现Zuora连接器存在错误.当Zuora返回无效的会话错误时,Zuora连接器没有捕获到该错误,而是从池中破坏了连接并启动了新连接. MuleSoft已确认该错误.

After working with MuleSoft Support, it was discovered there is a bug with the Zuora connector. When Zuora returns an invalid session error, the Zuora connector is not catching it, destroying the connection from the pool, and initiating a new connection. MuleSoft has confirmed the bug.

这篇关于ule子-Web服务使用者(肥皂)始终返回null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆