예제 #1
0
 public static GenWebAccess.loaderResultsStruct InsertDataInGeneva(GenevaConnection pConnection, string pLoaderFileName)
 {
     GenWebAccess.Service WService = new GenWebAccess.Service();
     GenWebAccess.loaderResultsStruct selectReturn;
     //string loaderSessionID = GetRunRepSessionID(pConnection, WService);
     XmlDocument loaderRecord = new XmlDocument();
     loaderRecord.Load(@pLoaderFileName);
     WService.Url = pConnection.URL;
     string loaderSessionID = WService.StartCallableLoader(pConnection.Port, pConnection.HostName, pConnection.UserName, pConnection.Password);
     selectReturn = WService.RunCallableLoader(loaderSessionID, loaderRecord.InnerXml, "-x -bvc -iu");
     return selectReturn;
 }
예제 #2
0
 //Loading data into Geneva AGA. 
 private GenWebAccess.loaderResultsStruct runCallableLoaderMethod()
 {
     string loaderSessionID = string.Empty;
     GenWebAccess.loaderResultsStruct selectReturn;
     GenWebAccess.Service webServ = new GenWebAccess.Service();
     webServ.Url = genevaUrl;
     loaderSessionID = webServ.StartCallableLoader(genevaPort, genevaHostName, genevaUid, genevaPassword);
     try
     {
         XmlDocument loaderRecord = new XmlDocument();
         loaderRecord.Load(@"..\..\GenevaLoaderMessage.xml");
         selectReturn = webServ.RunCallableLoader(loaderSessionID, loaderRecord.InnerXml, "-x -bvc -iu");
         return selectReturn;
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
         throw e;
     }
 }