i want to pass a string array from x++ to C# method. but it is giving an error : Argument '1' is incompatible with required type.
X++ code:
public static server str callfunction()
{
MagentoTrigger.MagentoAXServiceSoapClient soapClient; // .net webservice object
str ret;
str arry[2];
;
arry[1] = "101";
arry[2] = "102";
new InteropPermission(InteropKind::ClrInterop).assert();
soapClient = new MagentoTrigger.MagentoAXServiceSoapClient('MagentoAXServiceSoap');
ret = soapClient.Sync_Item_Selective(arry); // getting error : Argument '1' is incompatible with required type
//method : string Sync_Item_Selective(string[] array)
CodeAccessPermission::revertAssert();
return ret;
}
Sync_Item_Selective method takes "string array" as argument. but i am unable to pass string array from x++.
i have also tried with list, container. but i dont know how to use container in .net
plz suggest me, i just want to pass a string array to .net method.