I am using Test Director to create an automated script (in JavaScript) that will send a query in SOAP/XML and then display the results in the output window. The SOAP response returned is an array. I can use the Degugger tool to view the variables and I have verified that data is coming back using the Variables window. But I'm stuck trying to display the data in the TDOutput. Here's what I have so far, which Test Director generated. Anyone see what's wrong or missing?

// call SOAP method : ArrayOf_tns3_Prov getProv ( )
var result1; // Object
var node;
result1 = soapTransAdapterService.getProv();
result1 = XTools.WrapArray(result1);
for (i = result1.lbound(); i <= result1.ubound(); i++) {
node = result1[i];