简体   繁体   中英

SOAP-ERROR: Parsing WSDL: Couldn't load from http://demo.tuleap.com

$soap_option  = array(
'cache_wsdl' => WSDL_CACHE_NONE,
'exceptions' => 1,
'trace'      => 1
);

$client_login = new SoapClient($host_login, $soap_option);
$session_hash = $client_login->login($userName,$password)->session_hash;
$client_tracker = new SoapClient($host_tracker, $soap_option);

The connection was successful the first time, but it fails if I try one more time.

The below steps are helped me to resolve. Step 1: Replace the second argument of a constructor SoapClient as

$soap_option  = array(
'cache_wsdl' => WSDL_CACHE_DISK,
'exceptions' => 1,
'trace'      => 1
);

Step:2 clear the files in /tmp directory Step3: Restart the server Step4: Run the file on browser Note: ini_set("soap.wsdl_cache_enabled", 0); This line should be called before create instance for SoapClient

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM