douganggu4392 2013-02-06 14:56
浏览 62

Magento Uncaught SoapFault异常:[0]无法在/ opt / local / apache2 / htdocs / code /中加载服务器上的Soap扩展

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 enter image description here

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条回答 默认 最新

  • dqwh1201 2013-02-06 22:46
    关注

    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

    评论

报告相同问题?

悬赏问题

  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入