我想做一个 werbservice 调用,但它给了我以下错误:
SOAP-ERROR: Parsing WSDL: 找不到任何可用的绑定服务
这是代码
error_reporting(E_ALL);
ini_set('display_errors', '1');
define('URI', 'http://200.31.114.39/Servicio-Rest/STMPOST_SMAR.svc?singlewsdl');
try {
$client = new SoapClient(URI);
print_r($client);
//~ $result = $client->SomeFunction();
} catch (SoapFault $fault) {
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);
}
有什么问题?
供参考:
我启用了肥皂
$ php -i | grep -i soap
soap
Soap Client => enabled
Soap Server => enabled
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400