Hi Forum,
I am working with one of my navision collegues in aspects of integrating a simple webservice into nav2013. I am the .net guy...
In order to work with the webservice within navison I've created a simple dll wrapping the webservice. The dll contains no business logic - only a web reference to the external service.
The problem is that one of the webservice methods return an array of objects - the type looks like this:
public Aspect4Integration.Aspect4AccountWS.GetallaccountsResponseGenreralledgerdata[]genreralledgerdata { set; get; }
As You can see the type seems to be an array containing objects of type:
public class GetallaccountsResponseGenreralledgerdata
From within a .net test app it would be pretty simple to handle this:
//create return type
Aspect4Integration.Aspect4AccountWS.getallaccountsResult result = new Aspect4Integration.Aspect4AccountWS.getallaccountsResult();
//calling the webservice
result = client.getallaccounts(allAccountsRequest);
//handle the respone
Aspect4Integration.Aspect4AccountWS.GetallaccountsResponseGenreralledgerdata[] ld = result.response.genreralledgerdata;
But how do we do something similar in navision?
Within navision we can create a single object of the GetallaccountsResponseGenreralledgerdata type:
A4_GetNewAccountData := A4_GetNewAccountData.GetnewaccountsResponseGenreralledgerdata;
But when trying to create an array, nav seems to be treating the array declaration as a nav array.
Any advice would be very much appreciated.
Regards,
Torben Philippsen