我想把这个修好,但我坚持住了。我对WSDL、SOAP和使用它制作XML不太在行。我将继续得到这个错误--这个服务的WSDL中没有定义操作'‘,有人知道我是如何消除这个错误的吗?我的目标是从汽车修理厂获得一个包含所有场合的XML,并将它们放在我的数据库中。
这是我的密码:
ini_set('soap.wsdl_cache_enabled', 1);
$options = array(
'soap_version' => SOAP_1_2,
'trace' => true,
'exceptions' => true,
'encoding' => 'UTF-8',
'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP,
'cache_wsdl' => WSDL_CACHE_DISK,
'login' => '****', // <- username here, i got the right one
'password' => '****' // <- same
);
try{
$client = new SoapClient('https://eigenwebsite.doorlinkenvoorraad.nl/v1/leads/deliver.html?wsdl', $options);
//var_dump($client->__getFunctions());
//echo '<br>';
$klant = array(
"key"=>"****", // got the right one
"klantnummer"=>"****", // got the right one
"lead"=>"information_request",
"testmode"=>"dummy"
);
$quote = $client->deliverLead($klant);
}catch(SoapFault $exception){
echo $exception->getMessage();
}
发布于 2017-11-23 22:31:29
尝试将SOAP版本更改为1.1:
'soap_version' => SOAP_1_1,
从WSDL的外观来看,web服务只支持SOAP1.1,所以当您向它发送SOAP1.2消息时,它会抛出一个错误。
https://stackoverflow.com/questions/47389288
复制相似问题