在生产中,在https Symfony项目中!
我在https中出现了soapFault错误:
他的工作在http
libmusl
进入控制器:
SoapFault {#723 ▼
#message: "looks like we got no XML document"
#code: 0
#file: "/var/vhosts/admin-video/src/Controller/DefaultController.php"
#line: 141
+"faultstring": "looks like we got no XML document"
+"faultcode": "Client"
+"faultcodens": "http://schemas.xmlsoap.org/soap/envelope/"
trace: {▼
/var/vhosts/admin-video/src/Controller/DefaultController.php:141 {▼
› );
line 141 › $result = $client->hello('toto');
› dump($result);
请帮助! 我在Google上看过,但找不到
答案 0 :(得分:2)
可以!我得到价值
$client = new \SoapClient("http://admi*****i.im/recept?wsdl");
$result = $client->__soapCall('hello', ['name' => 'toto']);
dump($result);
在https中:
...
$client = new \SoapClient("https://admi*****o.coi.im/recept?wsdl");
...
我有一个SoapFault
答案 1 :(得分:2)
我发现,您必须写完整的'location'=>'uri .....?wsdl'