【发布时间】:2014-02-17 23:12:25
【问题描述】:
我想进行一个 werbservice 调用,但它给了我以下错误:
SOAP-ERROR:解析 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
【问题讨论】:
标签: php soap webservice-client