can anyone help with an issue about a quit simple SOAP call that receives an array from a 4D database?
The code snippet
var url4D = "http://127.0.0.1:8080/4DWSDL";
var service = SOAP.connect(url4D);
var result = service.PDFT_GetValuesArray();
this.getField("ID").value = result;
this.getField("DokNr").value = result;
//...and so on
will work fine on Acrobat X for Macintosh but write "undefined" into the target fields on Windows.
Thank you in advance.
Is the service available on the Windows system?
It is available and it calls the database (which I can see in the database debugger). The database sends the same array as it would on a mac, but on windows the array elements are "undefined".
By looking at the requests with the Charles proxy tool, I found out that the array fields are named "item1, ..., itemN" by the 4D database and are accessible as result.item1, result.item2 etc. On a Mac it is possible to access the array elements by index too (result, ...), on Windows it is only possible to access by name like shown.