duannaikuang1301 2013-09-17 20:33
浏览 59
已采纳

未捕获的SoapFault异常:[WSDL] SOAP-ERROR [Magento] [Ubuntu Server] [Saop]

I have to use magento webservice to get data remotely from my server(ubuntu 10.04), so i have followed this tuto : http://magento4u.wordpress.com/2009/07/28/magento-api-web-service-work/,

but when I try to execute the method in code igniter Controller :

$proxy = new SoapClient('myhostname/soap/?wsdl');

$sessionId = $proxy->login('username', '***********');

$customerinfo = $proxy->customerCustomerInfo($sessionId,1);

print_r($customerinfo);

I get this error :

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://hostname.com/api/soap/?wsdl' : Entity 'copy' not defined in /var/www/happyprojects/api/application/controllers/users.php:42 Stack trace: #0 /var/www/happyprojects/api/application/controllers/users.php(42): SoapClient->SoapClient('myhostname', Array) #1 [internal function]: Users->magento_call_get() #2 /var/www/happyprojects/api/system/core/CodeIgniter.php(359): call_user_func_array(Array, Array) #3 /var/www/happyprojects/api/index.php(219): require_once('/var/www/happyp...') #4 {main} thrown in /var/www/happyprojects/api/application/controllers/users.php on line 42

Please can you help really I'm blocked, I don't know what to do.

  • 写回答

3条回答 默认 最新

  • doucai1901 2013-09-20 11:42
    关注

    The problem was solved, I had to add just ´www´ to my URL call and this solve the problem, I hope this may help you later.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法