当我在 magento root 中运行以下代码时
<?php
$client = new SoapClient('http://localhost/mymagento/index.php/api/v2_soap/index?wsdl=1', array('cache_wsdl' => WSDL_CACHE_NONE));
$session = $client->login('testuser', 'testuser');
$result = $client->salesOrderList($session);
echo"<pre>";
print_r($result);
echo"</pre>";
?>
我收到以下错误
Fatal error: Uncaught SoapFault exception: [4] Resource path is not callable. in /var/www/html/mymagento/sales_order.php:9
Stack trace:
#0 /var/www/html/mymagento/sales_order.php(9): SoapClient->__call('salesOrderList', Array)
#1 /var/www/html/mymagento/sales_order.php(9): SoapClient->salesOrderList('98850601ed8aa6f...')
#2 {main}
thrown in /var/www/html/mymagento/sales_order.php on line 9
但是当我跑步时
$result = $client->salesOrderInfo($session,'100000030');
没有错误来。
如何解决这个问题?请帮忙