2010-08-18 63 views
1

我的目標是使用SOAP API調用獲取Catalog - > Attributes - > Manage Attributes Admin Panel部分中列出的所有屬性。Magento catalogCategoryAttributeList SOAP API調用不會返回所有屬性

當我打電話

stub.catalogCategoryAttributeList(sessionId) 

注:Java中,Apache Axis的用來撥打這個電話。在php中它與此調用相關 - http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_category_attribute#catalog_category_attribute.list

由於某些原因,我得到了一組有限的屬性。這裏是:

increment_id 
parent_id 
updated_at 
created_at 
name 
description 
image 
meta_title 
meta_keywords 
meta_description 
is_active 
all_children 
path_in_store 
children 
url_key 
url_path 
path 
position 
level 
display_mode 
landing_page 
is_anchor 
available_sort_by 
default_sort_by 
custom_design 
custom_design_apply 
custom_design_from 
custom_design_to 
page_layout 
custom_layout_update 

我在這裏例如缺少一些重要屬性,這裏是一些相關的T恤性質:

color 
gender 
size 
+0

您使用v1或v2的哪個版本的api? – Kapil 2011-03-05 07:07:28

回答

1

我知道這個問題已經很老了,但還是嘗試後一個儘可能多的已知答案,使SO更有知識。

因爲SOAP API「catalogCategoryAttributeList」只會輸出類別屬性而不是產品屬性,所以您得到的是完全可以的。

要獲得所有目錄產品屬性,您需要撥打「catalogProductAttributeList」SOAP API,提及here

希望它有幫助。