в производстве, в проекте https Symfony!
у меня есть ошибка soapFault в https:
он работает в http
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);
в контроллере:
$context = stream_context_create([
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
]
]);
$client = new \SoapClient(
"https://admin-******.im/recept?wsdl",
array(
'trace' => 1,
'exceptions' => 0,
'location' => 'https://admin-******.im',
'uri' => 'https://admin-******.im/recept?wsdl',
'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP,
'cache_wsdl'=>WSDL_CACHE_NONE,
'encoding' => 'UTF-8',
'stream_context' => $context
)
);
$result = $client->__soapCall('hello', ['name' => 'toto']);
dump($result);
помогите, пожалуйста!Я посмотрел на Google, но я не могу найти