在AX表中使用C# [英] CRUD operation in AX tables using C#
问题描述
我是AX的新用户。
我的老板给了我从C#访问AX 2012表的任务。
My boss gave me to task to access tables of AX 2012 from C#.
以下是条件:
- 代码应为通用。 (用户将给我表名,列名
和任何条件,如果有,执行插入,删除,更新或
选择查询)。 - 客户端和服务器
- 客户端和服务器可能是也可能不在同一个
域中在客户端计算机上没有任何安装
我尝试过Business连接器。但是,我们不能在域外使用业务连接,并且需要在客户端计算机上安装
I tried Business connector. But, we can't use business connector outside the domain and it requires installation on client machine
我尝试过Web服务。但是,我们需要为每个Web服务组添加服务引用。
I tried web service. But, We need to add service reference for each web service group.
有什么最适合我的要求吗?或者,我在使用上述两种方式时缺少某些内容?
Is there any thing best suitable for my requirement? Or am I missing something while using above two ways?
请帮助解决此问题。
推荐答案
您可以使用 AifGenericDocumentService
。默认情况下,wsdl可用于 http:// _ AOS_:_8101_ / DynamicsAx / Services / AifGDS?singleWsdl
。
这是一个通用的Web服务,因此如果您不知道目标表的模式,您还可以使用 http:// _ AOS_:.com / en / us / library / gg880762.aspxrel =nofollow> MetadataService
_8101_ / DynamicsAx / Services / MetadataService?singleWsdl
This is a generic web service, so if you don't know the schema for target tables you can also use MetadataService
at http://_AOS_:_8101_/DynamicsAx/Services/MetadataService?singleWsdl
这篇关于在AX表中使用C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!