2

我正在使用 Microsoft Dynamics GP 2013 Web 服务来获取所有供应商。但我总是得到System.UnauthorizedAccessException。我还将用户添加到 Web 服务角色分配仍然是同样的问题。我的代码如下所示:

DynamicsGPClient gpClient = new DynamicsGPClient();
Context context = GetGPContext();
VendorCriteria criteria = new VendorCriteria()
{
    IsActive = new RestrictionOfNullableOfboolean() { EqualValue = true }
};
VendorSummary[] vendors = gpClient.GetVendorList(criteria, context);

任何帮助,将不胜感激。

谢谢

4

0 回答 0