これを試して。
$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy->login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary
$result = $proxy->catalogProductAttributeMediaInfo($sessionId, '2', '/b/l/blackberry8100_2.jpg');
var_dump($result);
応答:
array
'file' => string '/b/l/blackberry8100_2.jpg' (length=25)
'label' => string '' (length=0)
'position' => string '1' (length=1)
'exclude' => string '0' (length=1)
'url' => string 'http://magentohost/media/catalog/product/b/l/blackberry8100_2.jpg' (length=71)
'types' =>
array
0 => string 'image' (length=5)
1 => string 'small_image' (length=11)
2 => string 'thumbnail' (length=9)