{
// Open connection to the webservice.
WebServiceSession wss = new WebServiceSession(_prefs,_wsSessionProps);
wss.open();
final WebServiceValidator val = new WebServiceValidator(wss, _wsSessionProps);
final IQueryTokenizer qt = _session.getQueryTokenizer();
qt.setScriptToTokenize(_sql);
final StringBuffer results = new StringBuffer(1024);
while (qt.hasQuery())
{
// TODO: When message are can have some text in red (error)
// and some normal then put out errors in red.
ValidatorResult rc = val.validate(qt.nextQuery());
results.append(rc.getData());
}
_results = results.toString().trim();
}