Good morning to everybody.
We have a problem and we need help from community.
We are trying to call a record static method from PHP code (PHP 7) with this code >
$fas = 'Microsoft.Dynamics.BusinessConnectorNet,Version="4.0.0.0",Culture="neutral",PublicKeyToken="31BF3856AD364E35"';
$fcn = 'Microsoft.Dynamics.BusinessConnectorNet.Axapta';
$axp = new DOTNET($fas,$fcn);
$company = '';
$language = '';
$objectServer = '';
$configuration = '';
echo $axp->Logon($company,$language,$objectServer,$configuration);
$Class = 'DOTNET';
$Method = 'areyouthere';
$Parm1 = '';
$Parm2 = '';
$Parm3 = '';
$r = $axp->CallStaticClassMethod($Class,$Method,$Parm1,$Parm2,'');
$axp->Logoff();
... and the error message is >
com_exception: Source: Microsoft.Dynamics.BusinessConnectorNet
Description: Error al ejecutar c�digo: Se ha llamado al m�todo con un n�mero no v�lido de par�metros. Seguimiento de pila (C)\Classes\DOTNET\areyouthere in C:\inetpub\InfoWeb\LogisticInfo\com.php:34 Stack trace: #0 C:\inetpub\InfoWeb\LogisticInfo\com.php(34): dotnet->CallStaticClassMethod('DOTNET', 'areyouthere', '', '', '') #1 {main}
Translation of Description Message > "Error to execute code: invalid number or parameters in call method".
We think that the main problem could be in PHP kernel or similar.
Any idea? Had someone tried call AX class static methods o record static methods from PHP?
Thanks in advance. We are hurry about that.
*This post is locked for comments