简体   繁体   中英

soap error when using artisaninweb/laravel-soap to call a soap web service in a Laravel project

I have developed a project with Laravel framework that uses artisaninweb/laravel-soap to call a soap web service and it worked fine on a host. Since I have moved my web project from the host to a CentOS server, it can not call the soap web service and gets following error and I can not understand the reason.

SoapFault
SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://x.x.org:x/?wsdl' :
failed to load external entity "http://x.x.org:x/?wsdl"

Of course I have installed curl , openssl and soap modules and my server has access to soap web service.Is there any configuration that must be done?

我可以在服务器上运行此命令来解决问题。

 sudo setsebool httpd_can_network_connect=1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM