【发布时间】:2015-10-21 10:41:22
【问题描述】:
我正在尝试通过 Dynamics NAV (2009 R2) 中的 Page Web Service 公开 Codeunit 中的 Function。我按照MSDN documentation 和a blog post 中的步骤操作,但是在连接到Web 服务时出现以下错误:
System.IndexOutOfRangeException:索引超出了数组的范围。
我创建了一个 Page Web Service 和一个 Codeunit Web Service,它们都使用相同的名称,只发布了 Page Web Service:
我的 Codeunit 目前只包含 1 个函数,如下所示:
当我也发布 Codeunit Web Service 时,我可以使用它,但 Page Web Service 仍然显示错误。
当我重命名 Codeunit Web Service 时,Page Web Service 再次像以前一样工作,当然没有 Codeunit 的 Functions。
我是否遗漏了什么或做错了什么?
【问题讨论】:
标签: c# .net vb.net web-services dynamics-nav