【问题标题】:customLabel returning null on all fields using NetSuite WSDL on .NET Core 3.1customLabel 在 .NET Core 3.1 上使用 NetSuite WSDL 在所有字段上返回 null
【发布时间】:2020-10-20 14:55:10
【问题描述】:

我在 C# .NET Core 3.1 上通过 Visual Studio 2019 使用 NetSuite 2020.2 WSDL。它使用 WCF 连接服务进行连接。

当尝试访问任何“customLabel”字段时,它总是会返回 null:

ItemSearchRow _item = (ItemSearchRow)row;
ItemSearchRowBasic itemBasic = _item.basic;
Console.WriteLine("Price: " + itemBasic.basePrice[0].searchValue + "\tCustom Label: " + itemBasic.basePrice[0].customLabel);

这会导致“价格:26.66 自定义标签:”

SOAP 响应确实包含该字段,例如:

<platformCommon:basePrice>
<platformCore:searchValue>26.66</platformCore:searchValue>
<platformCore:customLabel>price_rrp</platformCore:customLabel>
</platformCommon:basePrice>

当通过 .NET Framework 运行相同的代码时,它会按预期工作。

有其他人经历过这种情况或知道如何解决吗?

谢谢 克里斯

【问题讨论】:

    标签: c# visual-studio .net-core wsdl netsuite


    【解决方案1】:

    所以事实证明这是 WCF 没有正确转换 WSDL 的错误。没有 ETA 可修复。

    任何感兴趣的人的解决方法是创建一个自定义货币字段,将价格水平引用为公式。然后我可以通过自定义列表访问它。

    谢谢, 克里斯

    【讨论】:

      猜你喜欢
      • 2022-12-17
      • 2022-07-28
      • 1970-01-01
      • 1970-01-01
      • 2021-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-15
      • 1970-01-01
      相关资源
      最近更新 更多