Merged in dheeyi/processmaker/3.0.1-GA (pull request #2591)

0017678: Error when case scheduler is executed from https url
This commit is contained in:
Julio Cesar Laura Avendaño
2015-08-11 11:55:13 -04:00

View File

@@ -335,7 +335,16 @@ class CaseScheduler extends BaseCaseScheduler
}
}
$wsdl = "http://" . SERVER_NAME . $port . "/sys" . SYS_SYS . "/" . SYS_LANG . "/classic/services/wsdl2";
$url = SERVER_NAME . $port . "/sys" . SYS_SYS . "/" . SYS_LANG . "/classic/services/wsdl2";
$testConnection = true;
try {
@$client = new SoapClient("http://" . $url);
} catch (SoapFault $fault) {
$testConnection = false;
}
$wsdl = ($testConnection) ? "http://" . $url : "https://" . $url;
$timeDate = strtotime($date);