Hello, I am working with some webservice call and I have a C# List of object which am to set from x++.
This code is assembled on the .net Framework 3.5, the code I have in C# is:
public List<PurchLine> line { get; set; }
private List<PurchLine> lineList = new List<PurchLine>();
public void AddLine(PurchLine line)
{
lineList.Add(line);
}
public List<PurchLine> GetLine()
{
return lineList;
}
On the other hand, in AX 2009,
I have created a class in X++ to call this code. My problem is that when working with the Purchline list, I don't perform the Set_Line() method. Mi code is :
.....
while select purchLine
where purchLine.PurchId == purchTable.PurchId
{
d365PurchLine = new FinishProductAgainstOrder.PurchLine();
d365PurchLine.set_lineNum(num2str(purchLine.LineNum, 6, 2, -1, -1));
d365PurchLine.set_itemId(purchLine.ItemId);
d365purchTable.AddLine(d365PurchLine);
}
d365PurchTable.set_line(d365PurchTable.GetLine());
resultDirmemo = d365PurchTable.Serialize(d365PurchTable);
......
The error shown by the system is that the method I want to use does not exist.
Can you help me?
Thanks