我在SSL Symfony项目中出现Soap错误

时间:2019-02-25 16:54:24

标签: symfony ssl soap

在生产中,在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上看过,但找不到

2 个答案:

答案 0 :(得分:2)

在http中

可以!我得到价值

$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

  • 进入导航器:http://admi ***** i.im/recept?wsdl xml正在显示。没关系

答案 1 :(得分:2)

我发现,您必须写完整的'location'=>'uri .....?wsdl'