customLabel 在 .NET Core 3.1 上使用 NetSuite WSDL 在所有字段上返回 null

customLabel returning null on all fields using NetSuite WSDL on .NET Core 3.1

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

当尝试访问任何“customLabel”字段时,它将始终 return 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 使用相同的代码时,它会按预期工作。

有没有其他人遇到过这个问题或知道如何解决这个问题?

谢谢 克里斯

结果证明这是 WCF 无法正确转换 WSDL 的错误。没有预计修复时间。

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

谢谢, 克里斯