For the machine prefixes, have you tried using vCACCAFEEntitiesFinder.findMachinesPrefixes(host, name)? e.g.:
var prefixes = vCACCAFEEntitiesFinder.findMachinesPrefixes(host, nameFromCSV);
for (var i = 0; i < prefixes.length; i++) {
// findMachinesPrefixes assume a name query, so do exact match here
if (prefixes[i].name === nameFromCSV) {
thePrefix = prefixes[i];
break;
}
}
For Array/String, you should just be able to create that in javascript, e.g. var a = new Array(); a[0] = 'foo';
I'm not sure about the CompositeTypes. Does that map to javascript objects? e.g. var c = { name1: 'foo', name2: 'bar' };
Greg