When i call the api function as follows
<?php $result = $client->catalogProductInfo($session, $id, null, 'sku'); ?>
I get the following error. I'm positive that all the passed variables are set correctly, as other magento api functions work just fine.
Product not exists Error: An Internal Error Has Occurred.
I'm assuming that it's a fault with the call syntax. I couldn't find a proper example of calling catalogProductInfo with sku instead of product id. The documentation http://www.magentocommerce.com/api/soap/catalog/catalogProduct/catalog_product.info.html suggests to me that my call is correct.
Any ideas as to what I'm doing wrong are highly appreciated.
Try to submit a space as last character of your SKU.
e.g. if SKU is "1234"
submit "1234 "
.
This issue sometimes occurs, if your submitted sku only contains numbers.