简体   繁体   English

使用PHP更新Dynamics AX 2012工作流程

[英]Using PHP to Update Dynamics AX 2012 Workflow

I am currently attempting to set up a PHP script to communicate with Dynamics AX 2012 and update a workflow (ie approve and reject), and after reading this post I believe it can be achieved using the business connector - however I also read a lot of articles advising not to use the Business Connector with AX 2012 and so I would like to avoid doing so if possible . 我目前正在尝试建立一个PHP脚本以与Dynamics AX 2012进行通信并更新工作流程(即批准和拒绝),阅读这篇文章后,我相信可以使用业务连接器来实​​现-但是我也阅读了很多文章建议不要在AX 2012中使用Business Connector,因此, 如果可能的话 ,我想避免这样做。

My question is: How can I use PHP (or any other language I can call through PHP) to communicate with AX 2012 to approve/reject or otherwise update existing workflows without using the business connector? 我的问题是:如何在使用业务连接器的情况下如何使用PHP(或可以通过PHP调用的任何其他语言)与AX 2012通信以批准/拒绝或更新现有工作流?

Thanks in advance. 提前致谢。

You should use AIF ( Application Integration Framework ). 您应该使用AIF( 应用程序集成框架 )。

Then you can call AX AIF services via SOAP (Web Services). 然后,您可以通过SOAP调用AX AIF服务(Web服务)。 Use HTTP adapter instead of default NetTcp (or configure it to use BasicHttp ). 使用HTTP适配器而不是默认的NetTcp (或将其配置为使用BasicHttp )。

See https://technet.microsoft.com/en-us/library/hh496418.aspx for the instructions of configuring HTTP Adapter. 有关配置HTTP适配器的说明,请参见https://technet.microsoft.com/zh-cn/library/hh496418.aspx

For workflow actions AIF service is already created ( \\Services\\SysWorkflowApprovalService ). 对于工作流操作,已经创建了AIF服务( \\Services\\SysWorkflowApprovalService )。

更好的方法是将PHP应用程序连接到WCF服务,然后轻松地将该WCF服务集成到AIF,然后将AIF调用到Dynamics AX,我认为这是最好的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM