简体   繁体   English

在artisaninweb / laravel-soap中调用Laravel项目中的soap Web服务时出现soap错误

[英]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. 我已经开发了一个项目Laravel框架使用artisaninweb/laravel-soap调用soap Web服务,它在主机上运行良好。 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. 由于我已将Web项目从主机移至CentOS服务器,因此它无法调用soap Web服务并出现以下错误,我无法理解原因。

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? 当然我已经安装了curlopensslsoap模块,并且我的服务器可以访问soap Web服务,是否需要进行任何配置?

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

 sudo setsebool httpd_can_network_connect=1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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