gpt4 book ai didi

php - fatal error : Uncaught SoapFault exception: [Client] DTD are not supported by SOAP

转载 作者:行者123 更新时间:2023-12-04 05:39:53 26 4
gpt4 key购买 nike

我正在尝试使用soap示例使用php网络服务,但是我收到此错误,我不知道这是什么意思?你能帮我吗?谢谢。

这是完整的错误:

Fatal error: Uncaught SoapFault exception: [Client] DTD are not supported by SOAP in C:\Program Files (x86)\EasyPHP-5.3.9\www\istemci.php:3
Stack trace:
#0 C:\Program Files (x86)\EasyPHP-5.3.9\www\istemci.php(3): SoapClient->__call('gonder', Array)
#1 C:\Program Files (x86)\EasyPHP-5.3.9\www\istemci.php(3): SoapClient->gonder('mesaj', 'konu', 'kime')
#2 {main}
thrown in C:\Program Files (x86)\EasyPHP-5.3.9\www\istemci.php on line 3



这是我的 server.php 代码:
  <?php 
$istemci=new SoapClient(null,array ('uri'=>'http://ersindogan-testuri','location'=>'http://localhost/test/sunucu.php'));
var_dump ($istemci->gonder('mesaj','konu','kime'));
?>

这是 client.php 代码:
     <?php 
class SMS {
public function gonder($mesaj,$konu,$kime){
return 'mesaj gonderildi';
}
}
$sunucu=new SoapServer(null,array ('uri'=>'http://ersindogan-testuri'));

$sunucu->setClass('SMS');

$sunucu->handle();

最佳答案

1. Check the End point URL, make sure its the right one

2. Check the SOAP header formation. Make sure you have required information, with encoding too .
3. SOAP parameters might be case sensitive

请排除故障并回复。

关于php - fatal error : Uncaught SoapFault exception: [Client] DTD are not supported by SOAP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11393263/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com