使用PHP,Magento soap api登录失败

我正在使用magento soap api,它在我的本地计算机和开发服务器上工作正常,但当我移动我的代码时 到生产服务器我发现以下错误:</ p>

致命错误:未捕获的SoapFault异常:[WSDL] SOAP-ERROR:解析WSDL:无法从' http://www.mydomain.com/magento/index.php/ api / soap / index /?wsdl = 1 ':无法加载外部实体“ http://www.mydomain.com/magento/index.php/api/soap/index/?wsdl=1 ”堆栈跟踪:#0 [内部功能] :SoapClient-&gt; __ call('login',Array)#1 </ strong> </ p>

我还检查了服务器上的SOAP设置一切正常,但仍然出现此错误。</ p>

请帮帮我......! </ p>
</ div>

展开原文

原文

I am working with magento soap api and it's works fine in my local machine and development server but when i moved my code to production server i found the following error:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.mydomain.com/magento/index.php/api/soap/index/?wsdl=1' : failed to load external entity "http://www.mydomain.com/magento/index.php/api/soap/index/?wsdl=1" Stack trace: #0 [internal function]: SoapClient->__call('login', Array) #1

I have also check the SOAP setting on server everything is OK but still this error comes.

Please help me...!

duanchuang1935
duanchuang1935 任何解决方案
接近 6 年之前 回复

1个回答



我遇到了同样的问题。
我使用了V2 Soap。
如果要创建SoapClient,请尝试... / api / v2_soap / ?wsdl = 1
希望这可以帮到你。</ p>
</ div>

展开原文

原文

I confronted the same problem. I used V2 Soap. So to create SoapClient, please try .../api/v2_soap/?wsdl=1 Hope this helps you.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐