내가 이미지를 만들 수있는 Magento의 API를 사용하려고 해요로 이미지를 만들 수 있지만, 메시지젠토 API를
SoapFault exception: [104] Cannot create image.
이 도움이 오류 메시지가 아닌 함께 실패하는 것 방법! 이것은 무엇을 의미 하는가? 왜이 일을하는거야? Magento API를 사용하여 이미지를 만드는 방법은 무엇입니까?
$client = new SoapClient($wsdlurl);
$sessionId = $client->login($user, $key);
$file = array(
'content' =>
base64_encode(file_get_contents($filename)),
'mime' => 'image/jpeg',
'name' => 'newfile.jpg'
);
$result = $client->call(
$sessionId,
'catalog_product_attribute_media.create',
array(
$productId,
array('file'=>$file, 'label'=>'new_test_label', 'position'=>'100', 'types'=>array('thumbnail'), 'exclude'=>0)
)
);
내가 잘못 뭐하는 거지 :
이 내 코드?