开发者

Can PHP communicate with Dynamics AX business connector?

开发者 https://www.devze.com 2022-12-18 12:19 出处:网络
PROBLEM: I need to feed data from a PHP script into Dynamics AX. METHOD: I suppose the easiest way to do this is by using the Dynamics AX Business Connector.

PROBLEM: I need to feed data from a PHP script into Dynamics AX.

METHOD: I suppose the easiest way to do this is by using the Dynamics AX Business Connector.

QUEST开发者_如何学运维ION: Is it possible to connect to the Dynamics AX Business Connector directly from a PHP script? If so: How?


You might be able to call the Dynamics AX .NET Business Connector from PHP using the DOTNET class.


You can connect MS Dynamics AX 2009 from PHP 5.* Using the following examples code:

$Axapta = new COM("AxaptaCOMConnector.Axapta3.1") or die("Cannot start AX for you"); 
$Axapta->Logon("MMKT", "en-us", "LOCAL_AX_DEV@MMOP-IS:2714", "");

$xml_repairorder =  "<parameters>";
$xml_repairorder .= "<recId>5637318352</recId>,";
$xml_repairorder .= "</parameters>";

$return = $Axapta->CallStaticClassMethod("WebRepairOrder", "DeleteSymptom", $xml_repairorder);

Description

MMKT =  Company Name
LOCAL_AX_DEV = .axc file name
MMOP-IS = Server Name
2714 = Port AX
WebRepairOrder = Class Name on AOT
DeleteSymptom = Function Name in WebRepairOrder Class


No, I don't think that is possible. The Business Connector is used for .NET or legacy COM applications.

0

精彩评论

暂无评论...
验证码 换一张
取 消