在AX表中使用C# [英] CRUD operation in AX tables using C#

查看:166
本文介绍了在AX表中使用C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是AX的新用户。

我的老板给了我从C#访问AX 2012表的任务。

My boss gave me to task to access tables of AX 2012 from C#.

以下是条件:


  1. 代码应为通用。 (用户将给我表名,列名
    和任何条件,如果有,执行插入,删除,更新或
    选择查询)。

  2. 客户端和服务器

  3. 客户端和服务器可能是也可能不在同一个
    域中在客户端计算机上没有任何安装

我尝试过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

您可以在 https:// community.dynamics.com/ax/b/microsoftdynamicsaxintegration/archive/2012/05/06/microsoft-dynamics-ax-2012-application-integration-framework-custom-web-service-loosely-typed

这篇关于在AX表中使用C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆