This code should display values being returned in a SOAP/XML array of user names (strings) and their permissions (strings). The debugger/variables tool I am using at breakpoints shows the values are being returned in the XML response, but I can't get them to print in the TDOutput window. The line, "User: undefined" prints for every user in the DB, so "node" seems to be null. Any ideas what is wrong here? Thanks for any help.
// call SOAP method : ArrayOf_tns3_IcpUser getUsers ( )
var result2; // Array of String
result2 = soapIcpTransactionAdapterService.getUsers();
result2 = XTools.WrapArray(result2);
for (i = result2.lbound(); i <= result2.ubound(); i++) {
node = result2;
TDOutput.Print("User: "+node);
}
// call SOAP method : ArrayOf_tns3_IcpUser getUsers ( )
var result2; // Array of String
result2 = soapIcpTransactionAdapterService.getUsers();
result2 = XTools.WrapArray(result2);
for (i = result2.lbound(); i <= result2.ubound(); i++) {
node = result2;
TDOutput.Print("User: "+node);
}