Magento Uncaught SoapFault exception: [0] Unable to load Soap extension on the server in /opt/local/apache2/htdocs/code/

我的未来我决定 提交于 2019-12-11 06:16:50

问题


I am so lost right now. I am trying to use Soap client and I get the following error

Uncaught SoapFault exception: [0] Unable to load Soap extension on the server in /opt/local/apache2/htdocs/code/import.php

inside of import.php

import.php

$client = new SoapClient('http://mymagentowebsite.com/api/soap/?wsdl');
$session = $client->login('api_master', 'api123');

When I got to my phpinfo, I am able to see my soap client enabled

I am using Macports and I did install the soap port extension as well

below is what i found in my php.ini

extension=php_soap.dll
[soap]
; Enables or disables WSDL caching feature.
; http://php.net/soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1

; Sets the directory name where SOAP extension will put cache files.
; http://php.net/soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"

; (time to live) Sets the number of second while cached file will be used
; instead of original one.
; http://php.net/soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400

; Sets the size of the cache limit. (Max. number of WSDL files to cache)
soap.wsdl_cache_limit = 5

What am I doing wrong ?


回答1:


I've figured it out. My local machine had the SOAP CLIENT and SERVER extension installed but the server I was calling to didn't. I had to go to the remote server and install the soap extension. I got my source from the following.

I was confused because I thought the error was referring to my local machine, but it was referring to my remote machine.

PHP SOAP fatal error message



来源:https://stackoverflow.com/questions/14732009/magento-uncaught-soapfault-exception-0-unable-to-load-soap-extension-on-the-s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!