Configuration for NGINX PHP Soap


Configuration for NGINX PHP Soap

这是我的服务调用NGINX和PHP与yiiframe。

https://www.example.com/api/service?ws=1

我已经在nginx配置中添加了位置配置,如下所示

location /api {
        rewrite ^/api/service /CWsdlGenerator.php?type=rest last;
      }

但是我总是得到以下错误_:

SOAP-ERROR:解析WSDL:无法从'https://www.example.com/api/service'加载:加载外部实体"https://www.example.com/api/service"失败

我可以知道是什么问题吗?

认为,

我错过了安装php-xml。之后,我可以看到WSDL XML。