Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Problem with Soap Product List Output
 
rolandgallus
Jr. Member
 
Total Posts:  5
Joined:  2012-12-17
 

Hello Magento Community,

I have tried using the Magento API documentation via SOAP times output my product list, the whole thing looks like this:
(http://www.magentocommerce.com/api/soap/introduction.html)

<?php
//include the Magento API file - replace with your server path to the file
require_once('/absolut-dirl/app/Mage.php');

/***** Configuration ******/
$myAPILogin 'login';
$myAPIKey 'key';


// Begin SOAP Requests
$client = new SoapClient('https://shop-url.com/index.php/api/soap/?wsdl');
$session $client->login($myAPILogin$myAPIKey);

//get all my database products into an array
$products $client->call($session'catalog_product.list');

echo 
"Starting product loop...<br/><br/>";
var_dump($products);
?>
However, I always get NULL as a result. What am I doing wrong?

About fast help, I would appreciate it.

Greetings
Roley

// Sorry for my bad english.

 
Magento Community Magento Community
Magento Community
Magento Community
 
rolandgallus
Jr. Member
 
Total Posts:  5
Joined:  2012-12-17
 

*push this thread*

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top