fcmisc
06-06-07, 23:25
Using the following php code, I sometimes get get the error listed below.
PHP CODE:
$oClient = new api_client();
$aGetProductList = array('iCategoryId'=>235,
'sSort'=>'popular',
'bIncludeDescendants'=>0,
'iOffset'=>0,
'iLimit'=>50
);
$oSearchProduct = $oClient->call('getProductList',$aGetProductList);
ERROR:
warning: Invalid argument supplied for foreach() in
PATH/includes/soap/classes/class.php4Client.php
on line 113.
I have a feeling this is because the WSDL request is timing out.
How can I resolve this? If my feeling is correct, how can I increase the timeout?
PHP CODE:
$oClient = new api_client();
$aGetProductList = array('iCategoryId'=>235,
'sSort'=>'popular',
'bIncludeDescendants'=>0,
'iOffset'=>0,
'iLimit'=>50
);
$oSearchProduct = $oClient->call('getProductList',$aGetProductList);
ERROR:
warning: Invalid argument supplied for foreach() in
PATH/includes/soap/classes/class.php4Client.php
on line 113.
I have a feeling this is because the WSDL request is timing out.
How can I resolve this? If my feeling is correct, how can I increase the timeout?