未捕获的SoapFault异常:[4]资源路径不可调用

时间:2016-10-26 11:51:29

标签: php magento soap

我在magento中创建了一个自定义soap api,但是当我尝试使用名为“customapimoduleProductList”的自定义api方法时,我收到以下错误

<?php error_reporting(E_ALL); ini_set("display_errors", 1); require_once('../app/Mage.php'); umask(0); Mage::app(); $result4 = array(); //$category_id = $_POST['category_id']; $client = new SoapClient('magentostore.com/api/v2_soap/?wsdl'); $sessionid = $client->__call('login',array('test', '12345678')); $result = $client->__call('customapimoduleProductList',array($sessioni‌​d)); var_dump($result); ?> and the error is "Uncaught SoapFault exception: [4] Resource path is not callable"   

当我访问我的商店http://yourmagentostore/api/v2_soap?wsdl=1时,添加了“customapimoduleProductList”方法 我的其他soap api方法也正常工作但面临自定义问题。请帮助。用于创建api的参考链接是我使用的: https://code.tutsplus.com/tutorials/create-a-custom-api-in-magento-part-one--cms-23785

我的参考代码:

hidden

0 个答案:

没有答案