private object runReportSelectLiteral(string query) { object results; string runrepSessionID; GenWebAccess.Service webServ = new GenWebAccess.Service(); webServ.Url = genevaUrl; runrepSessionID = webServ.StartCallableRunrep(genevaPort, genevaHostName, genevaUid, genevaPassword, "-f empty"); results = webServ.RunCallableRunrepRunSelectLiteral(runrepSessionID, query,""); return results; }
public DataSet runReportSelectLiteralDS(string query) { object results; var webServ = new GenWebAccess.Service(); webServ.Url = genevaUrl; webServ.Timeout = 500000; string runrepSessionID = webServ.StartCallableRunrep(genevaPort, genevaHostName, genevaUid, genevaPassword, "-f empty"); DataSet tempDS = new DataSet(); try { results = webServ.RunCallableRunrepRunSelectLiteral(runrepSessionID, query, ""); var s = new System.Xml.Serialization.XmlSerializer(typeof(object)); var writer = new StringWriter(); s.Serialize(writer, results); var reader = new StringReader(writer.ToString()); tempDS.ReadXml(reader); } finally { int i = webServ.ShutdownCallableSession(runrepSessionID); webServ.Dispose(); } return tempDS; }