简体   繁体   English

PHP Soap 错误消息 SoapClient::SoapClient(/etc/xml/catalog): 未能打开 stream: 权限被拒绝

[英]PHP Soap Error Msg SoapClient::SoapClient(/etc/xml/catalog): failed to open stream: Permission denied

I try to send a soap request to the server which processes successfully but it fails at times citing the following error message我尝试向成功处理但有时失败并引用以下错误消息的服务器发送 soap 请求

"SoapClient::SoapClient(/etc/xml/catalog): failed to open stream: Permission denied" “SoapClient::SoapClient(/etc/xml/catalog): 未能打开 stream: 权限被拒绝”

Code:代码:

**$ns = 'urn:"{urn}":client-service:2005-11';
$headerbody = array('lk' => $obj->lk);
$soapHeader = new SoapHeader($ns, "licenceHeader", $headerbody);
$client = new SoapClient('url here', array('exception' => 1, 'exceptions' => 1, 'trace' => 1));
$client->__setSoapHeaders($soapHeader);**

Why it is trying to open the /etc/xml/catalog file and what is the solution for the problem为什么它试图打开/etc/xml/catalog文件以及问题的解决方案是什么

If your SOAP request is valid then it might be issue related to API rate limiting if you are using free API service.如果您的 SOAP 请求有效,那么如果您使用免费的 API 服务,则可能是与 API 速率限制相关的问题。 I don't know much about what service you are using I think you should check their docs.我不太了解您使用的是什么服务,我认为您应该查看他们的文档。 Another thing is that I think API should return proper error response if that is the case.另一件事是,如果是这种情况,我认为 API 应该返回正确的错误响应。

@AhmadSaeed92 Please let me know if I can help you further @AhmadSaeed92 如果我能进一步帮助您,请告诉我

Ref: https://nordicapis.com/everything-you-need-to-know-about-api-rate-limiting/参考: https://nordicapis.com/everything-you-need-to-know-about-api-rate-limiting/

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

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