3

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.

QUESTION: Is it possible to connect to the Dynamics AX Business Connector directly from a PHP script? If so: How?

Jan B. Kjeldsen
  • 17,817
  • 5
  • 32
  • 50

3 Answers3

2

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

Jay Hofacker
  • 3,439
  • 20
  • 14
  • yes you can, or use one of the various dlls which allow php to connect to the windows API and use the COM business connector – AnthonyBlake Apr 12 '12 at 15:18
0

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
  • I have a project where i might need to connect to AX 2009. I haven't looked much into this, but can you tell me where i would get the COM connecter "AxaptaCOMConnector.Axapta3.1" from? – Danielss89 Sep 05 '14 at 12:57
-1

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

Tony The Lion
  • 61,704
  • 67
  • 242
  • 415