ini_set("soap.wsdl_cache_enabled", "0");
-$client = new SoapClient("http://localhost/src/eclipse-workspace/glcas/www/soap.php?wsdl", array("trace" => 1));
+$client = new SoapClient("https://localhost/src/eclipse-workspace/glcas/www/soap.php?wsdl", array("trace" => 1));
print_r($client->__getFunctions());
<?php
require_once("../lib/lib.php");
+ini_set("soap.wsdl_cache_enabled", "0");
+
$soapFunctions["status"] = "status";
global $soapFunctions;
}
if(isset($_REQUEST["wsdl"])) {
- $mylocation = "http://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
+ $mylocation = "https://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
generateWSDL($mylocation, $soapFunctions);
exit(0);
}
if(isset($_REQUEST["xsd"])) {
- $mylocation = "http://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
+ $mylocation = "https://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
generateXSD($mylocation, $soapFunctions);
exit(0);
}
if($_SERVER["REQUEST_METHOD"] != "POST") {
- $mylocation = "http://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
+ $mylocation = "https://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
generateWSDL($mylocation, $soapFunctions);
exit(0);
}
echo $wsdl;
}
-$mylocation = "http://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
+$mylocation = "https://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"];
$s = new SoapServer("$mylocation?wsdl");
foreach($soapFunctions as $function) {