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.