private static string ConvertDiServiceInfoToXMLText(DIServiceInfo serviceInfo)
 {
     return("<DIServiceInfo>" +
            "<DomainName>" + serviceInfo.DomainName + "</DomainName>" +
            "<ServiceName>" + serviceInfo.ServiceName + "</ServiceName>" +
            "</DIServiceInfo>");
 }
 public InformaticaWebRequestController(string url, DIServiceInfo serviceInfo)
 {
     executor     = new WebRequestsExecutor(url);
     _serviceInfo = serviceInfo;
 }
        internal static XmlDocument GetSessionLogTemplate(string sessionId, string folderName, string workflowName, string taskInstancePath, DIServiceInfo serviceInfo, int timeout = 60)
        {
            XmlDocument template = new XmlDocument();

            template.LoadXml(_envelopeHeader +
                             "<soap:Header>" +
                             "<ns0:Context xmlns:ns0 = \"http://www.informatica.com/wsh\">" +
                             "<SessionId>" + sessionId + "</SessionId>" +
                             "</ns0:Context>" +
                             "</soap:Header>" +
                             "<soap:Body>" +
                             "<ns0:GetSessionLog xmlns:ns0=\"http://www.informatica.com/wsh\">" +
                             ConvertDiServiceInfoToXMLText(serviceInfo) +
                             "<FolderName>" + folderName + "</FolderName>" +
                             "<WorkflowName>" + workflowName + "</WorkflowName>" +
                             "<TaskInstancePath>" + taskInstancePath + "</TaskInstancePath>" +
                             "<Timeout>" + timeout + "</Timeout>" +
                             "</ns0:GetSessionLog>" +
                             "</soap:Body>" +
                             "</soap:Envelope>");
            return(template);
        }