Closed

Magento API Product List Output Via SOAP Issue

For some reason I am getting my API call to time out when i use [url removed, login to view] as the call… It works when I use [url removed, login to view] and i send the sku as I get all the product info returned in an array, so I know its not the issue of PEAR SOAP not working. Does anyone have any ideas why that could be happening? I even tried to use the [url removed, login to view] method, and that returned an empty array when I specified the category id. My code is below.

If I change the resource path to [url removed, login to view], and supply the sku in the args, it will work... so I know the code does work as is, just not for product.list.

...again this is PEAR soap.

$host= ‘[url removed, login to view]’;

require_once (’SOAP/[url removed, login to view]’);

$namespace = ‘http://’.$host.’/[url removed, login to view]’;

$client = new SOAP_Client($namespace, ‘wsdl’);

$mage_user = “user”;

$mage_api_key = “key”;

$arguments = array(

‘username’ => $mage_user,

‘apiKey’ => $mage_api_key,

);

$session_id = $client->call( ‘login’, $arguments );

$filters = array(

‘sku’ => array(’eq’=>26813),

‘type_id’ => array( ‘eq’ => ‘simple’ ),

);

$arguments = array(

‘sessionId’ => $session_id,

‘resourcePath’ => ‘[url removed, login to view]’,

‘args’ => array( $filters ),

);

$result = $client->call( ‘call’, $arguments );

var_dump($result);

Skills: Magento, PHP

See more: magento soap resourcepath args, magento api product list, magento product api, magento api product, magento soap php, magento api args, soap call magento product list, magento api array, product list magento api, magento api product list category, magento list sku soap, magento soap api filters php, magento list filters, magento api output, simple soap client php, key ideas, pear soap, pear soap sessionid, magento soap working, magento wsdl output, magento soap filters, magento api product sku list, magento api product list output via soap, magento api time, soap api magento product list

About the Employer:
( 3 reviews ) Islip, United States

Project ID: #539806

5 freelancers are bidding on average $42 for this job

phpsolutionsuk

please see pm for more info.

$60 USD in 1 day
(79 Reviews)
7.0
bigans

Hello, We are Magento Experts. Thanks Biganswers

$50 USD in 4 days
(13 Reviews)
4.4
reddykapil

I have experience with Magento api

$40 USD in 1 day
(3 Reviews)
3.1
sailu35cw

Hi! I have gone through your requirement and i am glad that i can accomplish this task, i would be more interested to speak to you on IM. Pls give us an opportunity to work with you.

$30 USD in 2 days
(0 Reviews)
0.0
matrixb51

Ready to Work for You !!!! 100% Satisfaction Guaranteed !

$30 USD in 2 days
(0 Reviews)
0.0