You could also use a XML document as parameter which can contain _MANNY_ parameters J
Fra: Axapta-Knowledge-Village@yahoogroups.com [mailto:axapta-knowledge-vill...@yahoogroups.com] På vegne af nicoschueller Sendt: 10. marts 2009 19:56 Til: Axapta-Knowledge-Village@yahoogroups.com Emne: [Axapta-Knowledge-Village] Axapta Com PHP Hello, i have create a php-site with connect to Axapta com connector. It works fine up to 6 parameters. OK i known that i must use a parameterlist for more parameters, but i can't create it in php. In VBA ist works fine. PHP $axa=new COM("AxaptaCOMConnector.Axapta2") or die("Cannot start axa for you"); $AXAPara=new COM("AxaptaCOMConnector.AxaptaParameterList") or die("Cannot start axa for you"); $axa->Logon2("", "","); $MyClass=$axa->CreateObject("myClass"); $AXAPara->Size=1; $AXAPara->Element[1]="30124"; ->> Error in this Line is "PHP has encountered an Access Violation at ..." $MyClass->CallEx("myMethode",$AXAPara); In VBA it is: Set Axapta2 = CreateObject("AxaptaCOMConnector.Axapta2") Set ParameterList = CreateObject("AxaptaCOMConnector.AxaptaParameterList") Axapta2.Logon2 "", "","", ... Set Myobject = Axapta2.CreateObject("myClass", "new parameter1") ParameterList.Size = 7 ParameterList.Element(1) = "30124" ParameterList.Element(2) = 8 ParameterList.Element(3) = 2 ParameterList.Element(4) = 0.500 ParameterList.Element(5) = 2 ParameterList.Element(6) = "Test" ParameterList.Element(7) = "07.03.2009" msgbox MyObject.CallEx ("myMethode", ParameterList)