0
我試圖按照有關如何在Magento使用肥皂的信息用肥皂,但總是在error.log中在Magento
如果任何類似的一個經驗的東西,這可以給我一些小費得到同樣的消息,這將是受歡迎的。
"PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.site.com/index.php/api/?wsdl' : failed to load external entity "http://www.site.com/index.php/api/?wsdl"\n in /var/www/test.php on line 1"
$client = new SoapClient('http://www.site.com/api/?wsdl');
$session = $client->login('apiUser', 'apiKey');
$result = $client->call($session, 'somestuff.method');
$result = $client->call($session, 'somestuff.method', 'arg1');
$result = $client->call($session, 'somestuff.method', array('arg1', 'arg2', 'arg3'));
$result = $client->multiCall($session, array(
array('somestuff.method'),
array('somestuff.method', 'arg1'),
array('somestuff.method', array('arg1', 'arg2'))
));
// If you don't need the session anymore
$client->endSession($session);
替換
somestuff.method
真實的物體和方法感謝您的幫助。 但我繼續有同樣的消息「Error de HTTP 500(內部服務器錯誤)」。 即使我將代碼簡化爲: '$ client = new SoapClient(「http://localhost/index.php/api/?wsdl」);' –您打開了日誌記錄嗎?你的apache錯誤日誌中有什麼條目,你的magento system.log和exception.log? –
是的,並改變爲diferents配置我總是從apache error.log: ' –